-
Notifications
You must be signed in to change notification settings - Fork 696
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
cabal.config should have a field for password-command. #5224
Comments
cocreature just pointed out on IRC that this flag already exists, but is just not mentioned by the |
This appears to be fixed in version 2.4.0.0:
and looking at the auto-generated
|
@m-renaud no, it is not fixed yet (i.e. the open issue is the but fixing this might be as easy as extending the last line of uploadCommand :: CommandUI UploadFlags
uploadCommand = CommandUI {
commandName = "upload",
commandSynopsis = "Uploads source packages or documentation to Hackage.",
commandDescription = Nothing,
commandNotes = Just $ \_ ->
"You can store your Hackage login in the ~/.cabal/config file\n"
++ relevantConfigValuesText ["username", "password"], to include |
Ahh, I see, thanks for clarifying I had misread the original comment. I thought it was saying that the |
The ticket's main point was that "password-command" wasn't in the default config file as an option (I found out it existed on IRC), but that appears to be solved according to your comment. So yes, I think just patching the config values text to point it out should be enough to close this. |
Btw, the So only if your config file was generated by an older version of cabal you would have missed it |
That may have been the case, in which case I suppose this issue was actually rather trivial... Oh well! |
Currently, according to
cabal upload --help
it's possible to specify a username and password in the cabal.config file. Of course, storing passwords in config files is a horrible idea, ESPECIALLY when one wants to share/publish those. Thankfullycabal upload
has the helpful--password-command
flag to read the password from the stdout of another application, however as far as I know this password-command can't be specified in cabal.config?The text was updated successfully, but these errors were encountered: