-
Notifications
You must be signed in to change notification settings - Fork 53
Default to use GnuPG (useGpg := true), instead of Bouncy Castle #146
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
Conversation
Default useGpg to true, but make it overridable from environment variable SBT_PGP_USE_GPG.
90142c9 to
66364e3
Compare
Travis says `gpg: Invalid option "--pinentry-mode"`.
|
@djspiewak @wsargent @jodersky What do you guys think? Even if people move on to sbt-gpg, I am guessing there's still a ton of build that relies on sbt-pgp, so I think it's worth having a soft transition like this. This should encourage people to use gpg + pinentry locally, at least on a local machine. |
|
@eed3si9n I strongly agree. I do think sbt-gpg is a nicer solution at this point (no fault of yours or anyone else's!), but people are still using it, and |
|
@eed3si9n I approve, I think gpg can be assumed to exist (like "curl", "zip" etc) |
|
cool. Thanks for the input. |
|
If you are creating an sbt plugin with a boolean setting, you are probably doing something wrong. Instead you may want to split your plugin into two plugins and remove the boolean setting, according to Single Responsibility Principle. |
|
There is in fact a plugin called sbt-gpg, but it's more effective for me to change the default setting here because people are happy to upgrade to 2.0.0 rather than switch to a new plugin. |
|
I guess they would not reinvent sbt-gpg if sbt-pgp is split to two plugins at very beginning. |
It's worth remembering that sbt-pgp is a very old plugin. I think it's actually the oldest sbt plugin still in common use today, so it's not too surprising that it's a bit out of step with how plugins are designed today. That doesn't make it bad, it just explains why some of its design might seem a bit odd. |
Ref #140
This defaults
useGpgto true, but makes it overridable from system propertySBT_PGP_USE_GPG.