You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a pyproject.toml with package-mode = false and I'm copying it into a docker image. I installed the dependencies like this in previous versions of poetry:
poetry install --only main --no-cache -C /tmp
/tmp contains the pyproject.toml and poetry.lock files.
The command fails with poetry 2. Error message:
Poetry could not find a pyproject.toml file in / or its parents
The current directory during docker build is /. Poetry should change the directory to /tmp because of the -C /tmp parameter.
If I change the order of the parameters like this:
poetry install -C /tmp --only main --no-cache
then poetry successfully installs the dependencies.
Description
I have a pyproject.toml with
package-mode = false
and I'm copying it into a docker image. I installed the dependencies like this in previous versions of poetry:/tmp contains the pyproject.toml and poetry.lock files.
The command fails with poetry 2. Error message:
The current directory during docker build is /. Poetry should change the directory to /tmp because of the
-C /tmp
parameter.If I change the order of the parameters like this:
then poetry successfully installs the dependencies.
Workarounds
Specify -C parameter before the --only parameter
Poetry Installation Method
pip
Operating System
Alpine 3.21
Poetry Version
2.0.0
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: