Currently, when the download of the Clojure CLI fails the actual error is not surfaced. This makes debugging much harder, especially when intermittent network errors are the cause. This PR adds -S to the curl command, surfacing errors to the build log.
Before:
remote: Need to get 0 B/98.2 kB of archives.
remote: After this operation, 309 kB of additional disk space will be used.
remote: Download complete and in download only mode
remote: -----> Installing Clojure foobar CLI tools
remote: ! Push rejected, failed to compile Clojure (Leiningen 2) app.
remote:
remote: ! Push failed
After:
remote: Need to get 0 B/98.2 kB of archives.
remote: After this operation, 309 kB of additional disk space will be used.
remote: Download complete and in download only mode
remote: -----> Installing Clojure foobar CLI tools
remote: curl: (22) The requested URL returned error: 403
remote: ! Push rejected, failed to compile Clojure (Leiningen 2) app.
remote:
remote: ! Push failed
Currently, when the download of the Clojure CLI fails the actual error is not surfaced. This makes debugging much harder, especially when intermittent network errors are the cause. This PR adds
-S
to thecurl
command, surfacing errors to the build log.Before:
After:
Closes: GUS-W-13879339