poetry export --format requirements.txt …
export a commit hash of an installed repository instead of the initial used tag reference.
#9268
Labels
Description
Poetry is used to build a package that will be installed in a Docker image:
As of today, it was working well. But we've added a new package using this (as an example)
poetry add git+https://github.com/me/new-package#1.6.0
(new-package = {git = "https://github.com/me/new-package", rev = "1.6.0"}
is present in the[tool.poetry.dependencies]
of thepyproject.toml
) and when we tried to install the generatedwheel
by Poetry using an exportedrequirements.txt
, we ended up with this error:If we take a look at the
constraints.txt
file, we can see that line:new-package @ git+https://github.com/me/new-package@c3e22d63f50256f588bd1438eedcd761a1507a43 ; python_version >= "3.11" and python_version < "4.0"
, which doesn't match the initialgit+https://github.com/me/[email protected]
.Workarounds
If we replace this line by
new-package @ git+https://github.com/me/[email protected]
the problem disappear.Poetry Installation Method
pip
Operating System
Debian Bookworm
Poetry Version
1.8.2
Poetry Configuration
Python Sysconfig
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: