-
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
Http basic config password starting with "-" #2889
Comments
a test that reproduces the error: jeremad@7233156 |
Sounds a lot like #929 where people noticed the run command does not support the double dash approach to stop the argument parser from parsing further commands. The ArgvArgs clikit argument parser has the proper "takewhile" approach witch stops at a double dash, we should consider trying to mimic that approach in my opinion. From ArgvArgs:
|
It sure does look like it! |
We are also running in the exact same issue. We're running poetry config in our Gitlab CI and make use of
Is there a way to workaround this issue? |
You could add the password to the configuration file yourself. If you do not have a functioning keyring backend (often the case with CI) an |
This works: The |
I'm not sure if this really was a bug in the first place, but rather unfortunate CLI design instead. When configuring basic auth credentials, only the username is required, and the password is optional. So the parser is given the choice if you're providing another optional argument or if you're inputting options, and I'd go for parsing it as options as well. Maybe it makes sense to document this here? |
Document a solution for using passwords that start with a dash. This happened to a few people when using automatically generated tokens in a CI environment. See: python-poetry#2889
totally works for me |
…ython-poetry#4552) Document a solution for using passwords that start with a dash. This happened to a few people when using automatically generated tokens in a CI environment. Fixes python-poetry#2889 Co-authored-by: Bjorn Neergaard <bjorn@neersighted.com>
…ython-poetry#4552) Document a solution for using passwords that start with a dash. This happened to a few people when using automatically generated tokens in a CI environment. Fixes python-poetry#2889 Co-authored-by: Bjorn Neergaard <bjorn@neersighted.com>
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
I way to use poetry with a private repository, as described in the documentation I run:
poetry -vvv config http-basic.foo username "-some_password"
Note the
-
at the beginning of the passwordI have the following error:
The text was updated successfully, but these errors were encountered: