我想使用 Leiningen 部署一个 Clojure 库。我做了以下事情:
- 安装 gpg
- 创建了一个 gpg 密钥对
- 将我的 Clojars 凭证加密到 ~/.lein/credentials.clj.gpg
- 安装 gpg-agent
- 安装钥匙串
当我调用“lein deploy clojars”时,我得到以下输出:
WARNING: please set :license in project.clj.
Could not decrypt credentials from ~/.lein/credentials.clj.gpg
gpg: can't query passphrase in batch mode
gpg: decryption failed: secret key not available
See `lein help gpg` for how to install gpg.
No credentials found for clojars
See `lein help deploy` for how to configure credentials.
Username:
然后我卸载了 gpg,安装了 gpg2 并创建了一个从 gpg 到 gpg2 的符号链接。当我现在调用“lein deploy clojars”时,我得到:
WARNING: please set :license in project.clj.
^CCould not decrypt credentials from ~/.lein/credentials.clj.gpg
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE known - assuming UTF-8
gpg: signal Interrupt caught ... exiting
See `lein help gpg` for how to install gpg.
No credentials found for clojars
See `lein help deploy` for how to configure credentials.
Username:
警告后,命令等待输入,我只能通过按 ctrl-c 退出。
谁能告诉我为了部署图书馆我需要做什么?