This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-24
Channels
- # announcements (6)
- # beginners (89)
- # calva (75)
- # cider (37)
- # clj-kondo (1)
- # cljs-dev (19)
- # cljsjs (8)
- # clojars (1)
- # clojure (122)
- # clojure-europe (6)
- # clojure-italy (41)
- # clojure-nl (18)
- # clojure-uk (24)
- # clojurescript (26)
- # cursive (6)
- # data-science (5)
- # datomic (51)
- # emacs (28)
- # fulcro (8)
- # graalvm (13)
- # hoplon (1)
- # immutant (1)
- # jobs (3)
- # joker (1)
- # keechma (43)
- # lambdaisland (1)
- # leiningen (37)
- # midje (1)
- # nrepl (2)
- # off-topic (32)
- # re-frame (3)
- # reagent (24)
- # reitit (5)
- # remote-jobs (1)
- # shadow-cljs (33)
- # sql (7)
- # tools-deps (11)
Having a senior moment setting up to ‘lein deploy clojars’. The docs say it’s simple and then talk about all the non-simple cases instead. Is there a simple doc with an example?
Could not decrypt credentials from /Users/gmp26/.lein/credentials.clj.gpg
nil
See lein help gpg
for how to install gpg.
No credentials found for clojars
See lein help deploying
for how to configure credentials to avoid prompts.
Username: gmp26
Password:
Created /Users/gmp26/clojure/winton-utils/target/winton-utils-0.2.1.jar
Wrote /Users/gmp26/clojure/winton-utils/pom.xml
Need to sign 2 files with GPG
[1/2] Signing /Users/gmp26/clojure/winton-utils/target/winton-utils-0.2.1.jar with GPG
gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
`
lapc-br1-425:winton-utils gmp26$ lein deploy clojars
No credentials found for clojars
See lein help deploying
for how to configure credentials to avoid prompts.
`
DEBUG=true lein deploy clojars
Leiningen’s classpath: /Users/gmp26/.lein/self-installs/leiningen-2.7.1-standalone.jar
Applying task deploy to [clojars]
gpg: decryption failed: No secret key
Could not decrypt credentials from /Users/gmp26/.lein/credentials.clj.gpg
`
If it helps at all: Just to note, I do have this in my ~/.zshrc
(I think it’s portable to other shells though)
# For GPG with S3 and Maven
# gnupg
#
# start gpg-agent if not already running
[ -f ~/.gpg-agent-info ] && source ~/.gpg-agent-info
if [ -S "${GPG_AGENT_INFO%%:*}" ]; then
export GPG_AGENT_INFO
else
eval $( gpg-agent --daemon --enable-ssh-support )
fi
export GPG_AGENT_INFO
export GPG_TTY=$(tty)
Thanks @U0LK1552A - That makes a lot of sense 🙂
And yes - I already had a gpg-agent running so at first your script barfed. But when I killed it and restarted with your script - success!
I guess lein part is not bad. But have to figure out how to have gpg interoperate is the hard part.