-
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
About environment mangement and .venv folder #1770
Comments
Hello @azdkj532, this is definitly not the default behaviour. I guess you have set in in your config, either global or local, sometime before :) fin swimmer |
I am surprised by the answer of fin swimmer
|
@finswimmer Could you have a look on this ? May it's a bug.
|
It seems that it doesn't respect the configuration. |
@etijskens: You have @azdkj532: Ah, I see now. I guess this is a bug. If Reopen this issue. Thanks for reporting! fin swimmer |
@finswimmer: thanks for the clarification. So the virtual environment name can only be defined by the user for non-local environments... which I guess is not documented. |
When |
The more I think about the issue, the less I'm sure that it is a bug. Maybe it's the intended behavior and needs to get documentated as you said @azdkj532. Let's see what @sdispater said. |
@frostming Now IMO, this feature could be changed into
|
Additional information: Poetry use
|
Hi,
The use case we have:
Right now, we work around this issue by exporting the |
Same issue here. I've got a Windows development machine, but code running in Docker with a mount. The local Really counter-intuitive behavior. |
I agree that this is not an intuitive behavior. I think we should make a distinction between the That way, we make sure that it's possible to tell Poetry to not use the |
Before this change, when .venv directory exists within the project root, poetry will use it as the path to the venv regardless whether virtualenvs.in-project is set to true or not. This leads to confusion as described in #1770 and #2756. With this change poetry will check if virtualenvs.in-project is set to true if it finds a .venv folder. This commit also changes the default state of this configuration to be unset (null), in order to not break any current environments. Resolves: #1770 #2756
Exactly same situation as @lvkswrks. EDIT: I was using the config wrong, it seems to work by setting |
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. |
Issue
I found that poetry prefer using
.venv
folder inside as the virtual environment of project. But this behavior is not described in doc. I think it will be good to write down this.The text was updated successfully, but these errors were encountered: