Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution error (NullPointerException) at deps-deploy.gpg/read-passphrase (gpg.clj:11) #33

Open
kwladyka opened this issue Aug 2, 2021 · 5 comments

Comments

@kwladyka
Copy link

kwladyka commented Aug 2, 2021

Execution error (NullPointerException) at deps-deploy.gpg/read-passphrase (gpg.clj:11).
https://github.com/slipset/deps-deploy

when try to deploy using github actions

As I can see in code it tries to read passphrase from console which is impossible in cicd.

  1. How to fix this?
  2. Update readme.md how to deploy using cicd
@slipset
Copy link
Owner

slipset commented Aug 2, 2021

I believe it will not read from stdin if you supply CLOJARS_USERNAME and CLOJARS_PASSWORD in the environment.

@kwladyka
Copy link
Author

kwladyka commented Aug 2, 2021

(defn all-artifacts [sign? {:keys [version] :as coordinates} artifact]
  (let [pom (versioned-pom-filename coordinates)
        files [pom  artifact]
        signature-files (when sign? (sign! pom artifact))
        all-files (into files signature-files)]
    (artifacts version all-files)))

I think it is about sign?, not clojars user and password. I think I have them set correctly.

@kwladyka
Copy link
Author

kwladyka commented Aug 2, 2021

I can confirm with signed turned off this issue not appear. I will turn it off then.

@slipset
Copy link
Owner

slipset commented Aug 2, 2021

It should be possible to sign from ci/cd, so I'll fix that at some point.

slipset added a commit that referenced this issue Sep 18, 2021
Also, don't supply password to `gpg` when no password is supplied
@kwladyka
Copy link
Author

I can confirm issue still exist for :sign-releases? true

Execution error (NullPointerException) at deps-deploy.gpg/read-passphrase (gpg.clj:11).
null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants