This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-16
Channels
- # beginners (81)
- # calva (6)
- # cider (21)
- # clj-kondo (2)
- # clojure (62)
- # clojure-austin (3)
- # clojure-europe (3)
- # clojure-italy (20)
- # clojure-nl (39)
- # clojure-russia (4)
- # clojure-spec (19)
- # clojure-uk (23)
- # clojurescript (76)
- # cursive (6)
- # data-science (9)
- # datomic (12)
- # defnpodcast (1)
- # figwheel-main (3)
- # fulcro (8)
- # jackdaw (5)
- # jobs (1)
- # jobs-discuss (18)
- # joker (1)
- # leiningen (2)
- # liberator (2)
- # off-topic (148)
- # onyx (5)
- # pedestal (39)
- # planck (7)
- # re-frame (5)
- # reagent (3)
- # reitit (37)
- # shadow-cljs (165)
- # tools-deps (1)
- # yada (19)
Why doesn't lein find my deploymen credentials for clojars, any idea? The creds exist:
gpg --quiet --batch --decrypt ~/.lein/credentials.clj.gpg
{#"" {:username "holyjak" :password "secret"}}
and I say to use gpg creds in my project.clj
: ;; project.clj
;; ...
:repositories [["releases" {:url "" :creds :gpg}]]
yet I am still told
> $ lein deploy clojars
> No credentials found for clojars
Is the problem in "clojars" vs. "https://repo.clojars.org" or where? Thank you!!!✅ 4
I have fixed it be removing the entry in project.clj and adding it instead to ~/.lein/profiles.clj as
{:user {:deploy-repositories [["clojars" {:url "" :creds :gpg}]]
i.e. with "clojars" as the name, not "releases".
I also need to run gpg --quiet --batch --decrypt ~/.lein/credentials.clj.gpg
so that gpg-agent caches the psw for my key as lein doesn't prompt for it and just fails with "gpg: decryption failed: No secret key", which is a known issue.