2
我想使用Leiningen將一個(非快照)庫部署到Clojars。實際上,我之前已經能夠部署這個庫,但之前它已經做了一些我想要發佈的修復。我甚至有一個用來處理釋放一個小bash腳本和部署過程中,基本上只是做:如何解決「沒有找到發佈的憑證(你的意思是`lein deploy clojars`?」)?
RELEASE_VERSION=${releaseVersion} lein release
凡releaseVersion
作爲參數傳遞給腳本提供。我使用的是lein-release插件,我指定:
:lein-release {:deploy-via :clojars}
在我project.clj
。我也在/Users/johan/.lein/credentials.clj.gpg
中工作(或者至少他們曾經工作過)GPG憑證。
當運行lein release
提示我爲我的GPG密碼,但幾秒鐘後,我碰到這樣的:
$ RELEASE_VERSION=0.2.1 lein release
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
[master cf4e5d1] Version 0.2.1
1 file changed, 1 insertion(+), 1 deletion(-)
You need a passphrase to unlock the secret key for
user: "Johan <email>"
2048-bit RSA key, ID ABC123431, created 2015-11-12
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.
我也試過在我project.clj
設置repositories
:
:repositories [["releases" {:url "http://clojars.org/repo" :creds :gpg}]]
但它沒有任何區別。有誰知道如何解決這個問題?