-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If .venv is an empty directory, poetry installs dependencies globally #286
Comments
At a minimum, we need an assertion to prevent this, but it would be nice if Poetry could turn an empty directory into a virtual environment. And perhaps "empty" should mean that "bin/python" is absent. |
Does it mean it has to be |
To add a realistic situation where this can happen: We do our development in Docker containers and mount a volume in the container at For now, we just mount the volume at |
This is still an issue in 1.0.0b5 Another use case is creating it with a placeholder file in code repository, that way poetry automatically uses it without having to explicitly set poetry settings. |
I'm also running into this issue with poetry |
* change (env.py): force recreation of venv if it is not sane * new (env): add warning when forcing recreation * fix (env): warning about broken venv placed right before calling recreation * Update poetry/utils/env.py Co-Authored-By: Sébastien Eustace <[email protected]> Co-authored-by: Sébastien Eustace <[email protected]>
* Marker name is a string, not a lexer token * add unit test
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
$ rm -rf .venv && mkdir .venv
$ poetry install
The text was updated successfully, but these errors were encountered: