-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/featureFeature requests/implementationsFeature requests/implementationsstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the FAQ and general documentation and believe that my question is not already covered.
Feature Request
Previous issues have been raised asking about the behavior of --directory: (#7363, #7507). They have both been closed as "working as expected", so this issue is an official request to change the behavior OR change the flag OR update the docs.
Most GNU tools like make or git will make git -C dir ... equivalent to (cd dir && git ...). Using the same flag implies the same behavior, when it's not currently the case:
this is expected. Poetry just loads the pyproject.toml from the given directory and does not switch to the directory.
#7363 (comment)
Ideally, the behavior would be changed to actually change the directory; I don't see why a simple addition of os.chdir in the beginning of the CLI main function would break things.
MichalVasut, lefuturiste, omar-binary, krishmas, palfrey and 1 more
Metadata
Metadata
Assignees
Labels
kind/featureFeature requests/implementationsFeature requests/implementationsstatus/triageThis issue needs to be triagedThis issue needs to be triaged