Giter Club home page Giter Club logo

Comments (7)

tel avatar tel commented on August 10, 2024 6

@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.

BenWhitehead avatar BenWhitehead commented on August 10, 2024 1

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.

utgarda avatar utgarda commented on August 10, 2024

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.

jsuereth avatar jsuereth commented on August 10, 2024

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.

mrmechko avatar mrmechko commented on August 10, 2024

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.

dwickern avatar dwickern commented on August 10, 2024

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.

johnynek avatar johnynek commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.