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

gen-key does nothing #49

Closed
Synesso opened this Issue Jan 17, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@Synesso
Copy link

Synesso commented Jan 17, 2014

Config

    $ cat ~/.sbt/0.13/plugins/gpg.sbt 
    addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.1")

Session

    $ sbt
    Loading /home/jem/tools/sbt-0.13.1/bin/sbt-launch-lib.bash
    [info] Loading global plugins from /home/jem/.sbt/0.13/plugins
    [info] Set current project to jem (in build file:/home/jem/projects/blogs/jem/)
    > set pgpReadOnly := false
    [info] Defining */*:pgpReadOnly
    [info] The new value will be used by no settings or tasks.
    [info] Reapplying settings...
    [info] Set current project to jem (in build file:/home/jem/projects/blogs/jem/)
    > pgp-cmd gen-key
    > pgp-cmd list-keys
    /home/jem/.gnupg/pubring.gpg
    ----------------------------

    > exit

How can I debug this further?

@Synesso

This comment has been minimized.

Copy link
Author

Synesso commented Jan 17, 2014

From the top, with debug:

$ sbt --debug
Loading /home/jem/tools/sbt-0.13.1/bin/sbt-launch-lib.bash
[debug] > boot
[debug] > reload
[debug] > sbtStashOnFailure
[debug] > onFailure load-failed
[debug] > loadp
[info] Loading global plugins from /home/jem/.sbt/0.13/plugins
[debug] Running task... Cancelable: false, check cycles: false
[debug] 
[debug] Initial source changes: 
[debug]     removed:Set()
[debug]     added: Set()
[debug]     modified: Set()
[debug] Removed products: Set()
[debug] Modified external sources: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set()
[debug] 
[debug] Sources indirectly invalidated by:
[debug]     product: Set()
[debug]     binary dep: Set()
[debug]     external source: Set()
[debug] All initially invalidated sources: Set()
[debug] Copy resource mappings: 
[debug]     
[debug] Other repositories:
[debug]     FileRepository(publish-m2-local,FileConfiguration(true,None),Patterns(ivyPatterns=List(), artifactPatterns=List(/home/jem/.m2/repository/[organisation]/[module](_[scalaVersion])(_[sbtVersion])/[revision]/[artifact]-[revision](-[classifier]).[ext]), isMavenCompatible=true, descriptorOptional=false, skipConsistencyCheck=false))
[debug] Default repositories:
[debug]     Raw(ProjectResolver(inter-project, mapped: ))
[debug]     URLRepository(typesafe-ivy-releases,Patterns(ivyPatterns=List(http://repo.typesafe.com/typesafe/ivy-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=List(http://repo.typesafe.com/typesafe/ivy-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false))
[debug]     URLRepository(sbt-plugin-releases,Patterns(ivyPatterns=List(http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=List(http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false))
[debug]     FileRepository(local,FileConfiguration(true,None),Patterns(ivyPatterns=List(${ivy.home}/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=List(${ivy.home}/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false))
[debug]     public: http://repo1.maven.org/maven2/
[debug]     Sonatype snapshots: http://oss.sonatype.org/content/repositories/snapshots/
[debug]     Sonatype releases: https://oss.sonatype.org/content/repositories/releases/
[debug] Using inline dependencies specified in Scala.
[info] Set current project to projects (in build file:/home/jem/projects/)
[debug] > sbtPopOnFailure
[debug] > resumeFromFailure
[debug] > iflast shell
[debug] > shell
> set pgpReadOnly := false
[debug] > set pgpReadOnly := false
[info] Defining */*:pgpReadOnly
[info] The new value will be used by no settings or tasks.
[debug] Defining 
[debug]     */*:pgpReadOnly
[debug] 
[debug] The new value will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to projects (in build file:/home/jem/projects/)
[debug] > shell
> pgp-cmd gen-key
[debug] > pgp-cmd gen-key
[debug] Running task... Cancelable: false, check cycles: false
[debug] > shell
@jsuereth

This comment has been minimized.

Copy link
Member

jsuereth commented Jan 17, 2014

No, looks like gen-key is now broken. I'll have to dig into that one, probably add a scripted test for it in the future. Thanks for the bug report.

@jsuereth jsuereth closed this in 71f0752 Apr 1, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.