Comments (7)
@mrmechko Just discovered this myself today: you need to fully qualify your keys in pgp.sbt
, e.g.
com.typesafe.sbt.pgp.PgpKeys.pgpSecretRing := file("/Users/tel/.gnupgp/secring.asc")
com.typesafe.sbt.pgp.PgpKeys.pgpPublicRing := file("/Users/tel/.gnupgp/pubring.asc")
from sbt-pgp.
If you want to use usePgpKeyHex
for a specific key add (when using sbt-pgp 1.0.0)
com.typesafe.sbt.SbtPgp.autoImportImpl.usePgpKeyHex("<hexid>")
from sbt-pgp.
As far as I understood the docs, those settings should go to ~/.sbt/gpg.sbt, not the file where you add the plugin. Doesn't seem to work for me, though.
from sbt-pgp.
you need to split your settings:
~/.sbt/0.13/plugins/pgp.sbt
- This configures the inclusion of the plugin
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
~/.sbt/0.13/pgp.sbt
- This configures default settings for builds.
pgpSecretRing := file("/Users/biercoff/.gnupg/secring.gpg")
pgpPublicRing := file("/Users/biercoff/.gnupg/pubring.gpg")
Hope that helps!
from sbt-pgp.
In a similar vein, my ~/.sbt/0.13/pgp.sbt
file is essentially identical to the one above, but I'm still getting the same error. Is this because addSbtPlugin(...)
is in a project specific file? I suppose the question is are the global .sbt
files loaded before the project specific ones?
from sbt-pgp.
For the changes to stick, I also had to specify in Global
:
// ~/.sbt/0.13/pgp.sbt
com.typesafe.sbt.pgp.PgpKeys.pgpSecretRing in Global := file(".../secring.asc")
com.typesafe.sbt.pgp.PgpKeys.pgpPublicRing in Global := file(".../pubring.asc")
To verify, you can run show */*:pgpSecretRing
from sbt-pgp.
with 1.0.0 I had to use
com.typesafe.sbt.SbtPgp.autoImportImpl.pgpSecretRing :=
to get things to work.
from sbt-pgp.
Related Issues (20)
- update bouncy castle HOT 2
- Website does not show recent versions HOT 1
- sbt +release fails with GPG error HOT 6
- checkPgpSignatures: java.lang.IllegalArgumentException: Cannot add artifact HOT 3
- Publishing fails with invalid packet error HOT 2
- publishSigned fails after upgrade to 2.0.0-M2 HOT 4
- Signing with gpg must be done serially to avoid gpg-agent running out of memory HOT 8
- SBT_PGP_USE_GPG is a system property, not an environment variable
- pgpSigningKey can't be found using credentials method
- support GPG 2.1 and above HOT 4
- Setting custom GPG key results in a misleading error-level log entries HOT 2
- Not support a GPG key without passphrase?
- Missleading error "gpg-agent is not available" HOT 2
- When PGP_PASSPHRASE environment variable is set we should also set --pinentry-mode = loopback HOT 7
- No route to host HOT 3
- Server redirected too many times HOT 6
- ThisBuild / pomIncludeRepository
- "gpg: invalid option "--pinentry-mode"" when gpg is 2.0 HOT 1
- How to switch to a different keyserver? HOT 3
- gpg: signing failed: File exists HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-pgp.