-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Ability to pass GPG arguments to publish #851
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this more than #753.
Now, that you've touched these method signatures, can you please also add scaladoc to the method and it's parameters?
val command = "gpg" :: | ||
optionFlag("--passphrase", maybePassphrase) ++ optionFlag("-u", maybeKeyName) ++ | ||
Seq("--batch", "--yes", "-a", "-b", fileName) | ||
val command = Seq("gpg", "--batch", "--yes", "-a", "-b", fileName) ++ args |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering, if we should move these defaults into the default param to gpgArgs
and document it's meaning. It's not a change request, just a thought. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking the same but then people need to be aware that if there specify the --gpgArgs
they need to provide these too to keep them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about an accessor to the defaults to make reusing easy:
val defaultGpgArgs = ...
def publish(..., gpgArgs: Seq[String] = defaultGpgArgs, ...)
And a simple example in the docs, showing how to add a passphrase using the defaultsArgs + the passphrase args
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me. What do you think @jodersky?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I agree with @lefou's suggestion too. Thanks for working on this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change pushed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
This has broken publishing on the master branch:
@joan38 can you take a look? |
@lihaoyi You need to pass This is breaking change in terms of interface that is why I mentioned:
Let me know if you got it solved. |
Not sure if we are ok to break the interface here. If not I can probably add back
gpgPassphrase
andgpgKeyName
with a@deprecated
and wire that togpgArgs
.