slipset / deps-deploy

deploy your stuff
Eclipse Public License 1.0
148 stars 31 forks source link

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

Open kwladyka opened 3 years ago

kwladyka commented 3 years ago

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 commented 3 years ago

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

kwladyka commented 3 years ago
(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 commented 3 years ago

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

slipset commented 3 years ago

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

kwladyka commented 1 year ago

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

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