当尝试部署Clojure jar时,签名失败:secret key not available

当尝试部署Clojure jar时,签名失败:secret key not available,clojure,leiningen,gnupg,clojars,Clojure,Leiningen,Gnupg,Clojars,我试图将我的库部署到jdbc url,但签名失败: $ lein release On branch master Your branch is ahead of 'origin/master' by 2 commits. (use "git push" to publish your local commits) nothing to commit, working directory clean [master 23b2409] Version 0.3.0 1 file changed

我试图将我的库部署到jdbc url,但签名失败:

$ lein release
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
  (use "git push" to publish your local commits)
nothing to commit, working directory clean
[master 23b2409] Version 0.3.0
 1 file changed, 1 insertion(+), 1 deletion(-)
gpg: skipped "J. Pablo Fernández <pupeno@carouselapps.com>": secret key not available
gpg: signing failed: secret key not available
error: gpg failed to sign the data
error: unable to sign the tag
No credentials found for releases (did you mean `lein deploy clojars`?)
Password prompts are not supported when ran after other (potentially)
interactive tasks.
See `lein help deploy` for an explanation of how to specify credentials.
我试过使用Leiningen 2.5.2和2.5.1


发生什么事了?我遗漏了什么?

我没有任何关于
lein release
或签名的经验

但很明显,你的钥匙

J.Pablo Fernández

当您尝试使用时(检查字母
p


J.Pablo Fernández

我发现全局设置我的lein gpg密钥最简单,请参见此处:

因此,我的
~/.lein/profiles.clj
文件看起来像:

{:user {:plugins [[lein-auto "0.1.2"]]
        :signing {:gpg-key "<mykey>"}}}
{:user{:plugins[[lein auto“0.1.2”]]
:正在签名{:gpg密钥“”}}
其中
通过使用
gpg--list键找到

$ gpg-agent
gpg-agent: gpg-agent running and available
{:user {:plugins [[lein-auto "0.1.2"]]
        :signing {:gpg-key "<mykey>"}}}