← All tasks
pythonpython-poetry/poetry #3472Not checked yet

Poetry fails in CI/CD with ERROR: In --require-hashes mode, all requirements must have their versions pinned

envgap__python-poetry__poetry-3472

Original GitHub issue ↗Opened 2020-12-10

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not checked yet.
  • No curated issue-specific recipe or verified environment fix is available.

02 / ENVIRONMENT RECIPE

Base commit
Not freshly verified
Manifest
requirements.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

python-poetry/poetry #3472 · read the original issue
<!--

  Hi there! Thank you for discovering and submitting an issue.



  Before you submit this; let's make sure of a few things.

  Please make sure the following boxes are ticked if they are correct.

  If not, please try and fulfill these first.

-->



<!-- Checked checkbox should look like this: [x] -->

- [x] I am on the [latest](https://github.com/python-poetry/poetry/releases/latest) Poetry version.

- [x] I have searched the [issues](https://github.com/python-poetry/poetry/issues) of this repo and believe that this is not a duplicate.

- [x] If an exception occurs when executing a command, I executed it again in debug mode (`-vvv` option).



<!--

  Once those are done, if you're able to fill in the following list with your information,

  it'd be very helpful to whoever handles the issue.

-->



- **OS version and name**: Ubuntu 18.04.5 LTS

- **Poetry version**: 1.1.4

- **Link of a [Gist](https://gist.github.com/) with the contents of your pyproject.toml file**: https://github.com/DontShaveTheYak/cloud-radar/pull/5



## Issue



My builds were working fine locally and remotely. Here is an example of the first 12 or so lines...



```sh

2020-11-28T13:25:00.7733264Z ##[group]Run nox

2020-11-28T13:25:00.7733666Z ^[[36;1mnox^[[0m

2020-11-28T13:25:00.7772013Z shell: /bin/bash -e {0}

2020-11-28T13:25:00.7772325Z env:

2020-11-28T13:25:00.7772772Z   pythonLocation: /opt/hostedtoolcache/Python/3.8.6/x64

2020-11-28T13:25:00.7773219Z ##[endgroup]

2020-11-28T13:25:00.8815564Z nox > Running session lint-3.9

2020-11-28T13:25:00.8867576Z nox > Session lint-3.9 skipped: Python interpreter 3.9 not found.

2020-11-28T13:25:00.8869448Z nox > Running session lint-3.8

2020-11-28T13:25:00.8870400Z nox > Creating virtual environment (virtualenv) using python3.8 in .nox/lint-3-8

2020-11-28T13:25:01.6319387Z nox > poetry export --dev --format=requirements.txt --output=/tmp/tmp2554a7nu

2020-11-28T13:25:04.4828117Z nox > pip install --constraint=/tmp/tmp2554a7nu flake8 flake8-black flake8-bugbear flake8-import-order

2020-11-28T13:25:11.0176722Z nox > flake8 src tests noxfile.py

```



I added a package with `poetry add cfn-flip`





My builds still work locally but fail in github actions:



```sh

2020-12-10T12:32:26.6270480Z ##[group]Run nox

2020-12-10T12:32:26.6270955Z ^[[36;1mnox^[[0m

2020-12-10T12:32:26.6313567Z shell: /bin/bash -e {0}

2020-12-10T12:32:26.6313932Z env:

2020-12-10T12:32:26.6314480Z   pythonLocation: /opt/hostedtoolcache/Python/3.8.6/x64

2020-12-10T12:32:26.6315036Z ##[endgroup]

2020-12-10T12:32:26.7301178Z nox > Running session lint-3.9

2020-12-10T12:32:26.7352891Z nox > Session lint-3.9 skipped: Python interpreter 3.9 not found.

2020-12-10T12:32:26.7354096Z nox > Running session lint-3.8

2020-12-10T12:32:26.7357585Z nox > Creating virtual environment (virtualenv) using python3.8 in .nox/lint-3-8

2020-12-10T12:32:27.5320470Z nox > poetry export --dev --format=requirements.txt --output=/tmp/tmp2k2e6e06

2020-12-10
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]

Issue-specific recipe and runtime smoke command require review against the complete issue and repository.

Legacy already_works is install-only; proposed control still requires runtime verification.