I want to deploy a Clojure library using Leiningen. I have done the following things:
- installed gpg
- created a gpg key-pair
- encrypted my Clojars credential into ~/.lein/credentials.clj.gpg
- installed gpg-agent
- installed Keychain
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:
I then uninstalled gpg, installed gpg2 and made a symlink 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 the warning, the command waits for an input, from which I can only exit by pressing ctrl-c.
Can anyone tell me what I need to do in order to deploy the library?