-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
pyenv virtualenv --force not working as expected? #161
Comments
Quick comment: I've found |
I have the same issue.
|
I also noticed that the return code is 1 if a virtualenv of the given name already exists. Since the version already existing is documented as a supported case of
|
I found some info as to the cause of this issue. These lines have logic to handle the
However, the lines in the OP, which cause a premature exit with return-code 1, were added two years ago. So it seems like this change from 2 years ago might have broken the force flag: 0b9b192 |
Hi, first let me just say two things: 1) I like the tool. Thanks! 2) My understanding is that -f/--force would overwrite an existing environment of the same name and version.
Here is what happens when I try to use -f with an environment that already exists:
A little dive into the shell script leads me the following pair of conditionals:
pyenv-virtualenv#L349
I'm really not sure what this section is trying to do but it looks to me like it may always evaluate to true if an environment already exists, regardless of the force tag.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: