尝试部署 Clojure jar 时,签名失败并显示:密钥不可用
When trying to deploy a Clojure jar, signing fails with: secret key not available
我正在尝试将我的库部署到-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.
我的钥匙在那里:
$ gpg --list-secret-keys
/Users/pupeno/.gnupg/secring.gpg
--------------------------------
sec 2048R/F2FB1C6F 2015-07-15 [expires: 2016-07-14]
uid J. Pablo Fernández <pupeno@carouselappps.com>
ssb 2048R/E1A0E03B 2015-07-15
我安装了 gpg-agent 以防万一:
$ gpg-agent
gpg-agent: gpg-agent running and available
我尝试使用 Leiningen 2.5.2 和 2.5.1。
这是怎么回事?我错过了什么?
我对 lein release
和签名没有任何经验,
但你的钥匙有
J. Pablo Fernández <pupeno@carouselappps.com>
当您尝试使用(检查字母 p
)
J. Pablo Fernández <pupeno@carouselapps.com>
我发现全局设置我的 lein gpg 密钥最直接,请参见此处:
https://github.com/technomancy/leiningen/blob/master/doc/GPG.md#overriding-the-gpg-defaults
因此,我的 ~/.lein/profiles.clj
文件看起来像:
{:user {:plugins [[lein-auto "0.1.2"]]
:signing {:gpg-key "<mykey>"}}}
其中 <mykey>
是使用 gpg --list-keys
找到的
我正在尝试将我的库部署到-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.
我的钥匙在那里:
$ gpg --list-secret-keys
/Users/pupeno/.gnupg/secring.gpg
--------------------------------
sec 2048R/F2FB1C6F 2015-07-15 [expires: 2016-07-14]
uid J. Pablo Fernández <pupeno@carouselappps.com>
ssb 2048R/E1A0E03B 2015-07-15
我安装了 gpg-agent 以防万一:
$ gpg-agent
gpg-agent: gpg-agent running and available
我尝试使用 Leiningen 2.5.2 和 2.5.1。
这是怎么回事?我错过了什么?
我对 lein release
和签名没有任何经验,
但你的钥匙有
J. Pablo Fernández <pupeno@carouselappps.com>
当您尝试使用(检查字母 p
)
J. Pablo Fernández <pupeno@carouselapps.com>
我发现全局设置我的 lein gpg 密钥最直接,请参见此处:
https://github.com/technomancy/leiningen/blob/master/doc/GPG.md#overriding-the-gpg-defaults
因此,我的 ~/.lein/profiles.clj
文件看起来像:
{:user {:plugins [[lein-auto "0.1.2"]]
:signing {:gpg-key "<mykey>"}}}
其中 <mykey>
是使用 gpg --list-keys