-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv fails when inside a directory starting with a dash #439
Comments
So I don't think there are any technical reasons we can't add Before we start making decisions on how to address this though, I just want to make sure I understand the situation. From what I gathered in your issue on the |
You are correct on what the issue is, and I did use that solution to successfully fix it for my situation. It's possible that |
closing as 'won't fix' |
If the name given to a virtualenv starts with a dash, it can be misinterpreted as an argument when passed to external commands, such as when pew is used create a new virtual environment. Since pipenv has not been able to create a virtual environment in a directory whose name begins with a dash, there are no deployments to break with this change. Fixes pypa#439
Invoke pew with a double dash separator ("--"), to make it clear that the virtualenv name is a positional argument. Since the virtualenv name includes all or at least the beginning of the directory name, trying to create a virtualenv in a directory with a leading dash in its name will cause pew to erroneously parse the virtualenv name as an optional argument. Adding the separator causes the virtualenv name to be parsed correctly. Fixes pypa#439
The real issue is filed here, but would it make sense to add
-
to the list of characters to sanitize here?A test case:
The text was updated successfully, but these errors were encountered: