I want to deploy the Clojure library using Leiningen. I have done the following:
- gpg installed
- created a gpg key pair
- encrypted my Clojars credentials in ~ / .lein / credentials.clj.gpg
- gpg-agent installed
- Keychain installed
When I call "lein deploy clojars", I get the following output:
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:
Then I removed gpg, installed gpg2 and made a symbolic link from gpg to gpg2. When I now call "lein deploy clojars", I get:
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:
After warning, the command expects input, from which I can exit only by pressing ctrl-c.
Can someone tell me what I need to do to deploy the library?
Kocki source share