Skip to content
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

Add note about gpg --pinentry-mode=loopback argument to documentation #2782

Merged
merged 1 commit into from
Sep 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion example/scalabuilds/6-publish-module/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ Publishing Artifact(com.lihaoyi,foo_2.13,0.0.1) to ivy repo...
//
// [NOTE]
// --
// Recent versions of `gpg` (versions 2.1 and above) require an additional argument
// in order to accept a passphrase on the command line. Add `--pinentry-mode=loopback` to the
// comma-separated list of `gpg` arguments after `--gpgArgs`, so it becomes
// `--passphrase=$GPG_PASSWORD,--batch,--yes,-a,-b,--pinentry-mode=loopback`. Without the additional
// argument, you may see errors like `gpg: signing failed: Inappropriate ioctl for device`.
//
// Sonatype credentials can be passed via environment variables (`SONATYPE_USERNAME`
// and `SONATYPE_PASSWORD`) or by passing second or `--sonatypeCreds` argument in format
// `username:password`. Consider using environment variables over the direct CLI passing
Expand Down Expand Up @@ -118,4 +124,4 @@ Publishing Artifact(com.lihaoyi,foo_2.13,0.0.1) to ivy repo...
// --sonatypeUri http://example.company.com/release \
// --stagingRelease false
// ----
//
//