2

我正在尝试将我的库部署到-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。

这是怎么回事?我错过了什么?

4

2 回答 2

4

我没有任何签约的经验,lein release也没有签约的经验,

但很明显你的钥匙有

J. Pablo Fernández <pupeno@carouselappps.com>

当您尝试使用时(检查信p

J. Pablo Fernández <pupeno@carouselapps.com>

于 2015-08-24T11:49:13.307 回答
1

我发现全局设置我的 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

于 2016-01-09T21:13:13.250 回答