Closed eed3si9n closed 2 years ago
gpg --version gpg (GnuPG) 2.0.22
[info] gpg: invalid option "--pinentry-mode" -- | [error] java.lang.RuntimeException: Failure running 'gpg --batch --pinentry-mode loopback --passphrase *** --detach-sign --armor --use-agent --output /var/lib/buildkite-agent/builds/...'. Exit code: 2
Unfortunately the --pinentry-mode option is only available from GPG version 2.1, but isLegacyGpg just checks the major version. When the plugin is used with 2.0.x we get an invalid option error.
--pinentry-mode
isLegacyGpg
invalid option
See here for a similar issue.
Originally posted by @aakoshh in https://github.com/sbt/sbt-pgp/issues/184#issuecomment-802931904
To fix: https://github.com/sbt/sbt-pgp/pull/197
steps
problem
notes
Unfortunately the
--pinentry-mode
option is only available from GPG version 2.1, butisLegacyGpg
just checks the major version. When the plugin is used with 2.0.x we get aninvalid option
error.See here for a similar issue.
Originally posted by @aakoshh in https://github.com/sbt/sbt-pgp/issues/184#issuecomment-802931904