Closed simon-brooke closed 1 year ago
Hi @simon-brooke:
To deploy to Clojars, you have to use your username as the username, and a deploy token as the password. If you have an entry for Clojars in credentials.clj.gpg
and have :creds :gpg
set for Clojars in your project.clj
or ~/.lein/profiles.clj
, lein will use that an not prompt, so that entry has to be your username and deploy-token-as-password.
If you remove :creds :gpg
from whatever place you have it set, lein should ignore your credentials file and prompt.
The 401 Unauthorized - a deploy token is required to deploy.
from Clojars indicates that it is getting a password value, but it isn't the correct shape to be a deploy token.
Thank you for your very fast and helpful response.
I didn't in fact have :creds :gpg
set anywhere, but I do have :signing {:gpg-key "[redacted]"}
set in my .lein/profiles.clj
; I also had my Clojars credentials in .lein/credentials.clj.gpg
. I backed up and deleted the credentials file, and tried lein deploy; this worked.
Hi, I've been trying to deploy a release, and am getting problems with
lein deploy
(full error output below).Briefly:
~/.lein/credentials.clj
;Leiningen 2.9.8 on Java 1.8.0_161 GraalVM 1.0.0-rc1
.when I run
lein deploy clojars
, my deploy artefacts get built, signed and despatched. I am not prompted for my username; I am not prompted for a password; I am not prompted for a deploy token. The deployment fails with a 401 Unauthorised error.Do I need to delete my
~/.lein/credentials.clj.gpg
?