我正在尝试使用Leiningen将一个(非快照)库部署到Clojars。我之前实际上已经能够部署这个库了,但那是一段时间以前的事了,现在我已经做了一些修复,我想发布一些修复。我甚至有一个小的bash脚本,用来处理发布和部署过程,基本上就是这样:
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}]]但这并没有什么不同。有人知道怎么解决这个问题吗?
发布于 2016-09-01 14:51:50
问题是我不小心在我的~/.lein/profiles.clj文件中从{:user {:plugins .. }}中删除了[lein-release "1.0.9"]。当我再次添加它时,一切都像预期的那样工作。
https://stackoverflow.com/questions/39264147
复制相似问题