-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Auto download of clojure-tools.zip fails with mismatching checksum #113
Comments
Hm then again, it does appear to follow the redirect for https://github.com/clojure/brew-install/releases/download/1.11.1.1413/clojure-tools.zip.sha256 - the checksum it reports in the error is indeed the one from that file... |
The error message is not complete:
I believe there should be a version number in between. |
Aaah forget about all that redirect business: The problem are the leading zeroes of the checksum from the file! Formatting it like this makes it clear:
|
Ah, sorry, this is because I ran it with |
oh I see. why don't I see this when I run it from source? Are we on different OSes?
|
Ah I see, deps.clj is on 1403 but you have probably set |
Oh yes, indeed! I'm using the version provided by |
I'll make a new release with a fix. |
Note that this fix won't work until the next babashka release. So perhaps it's recommended to temporarily downgrade the tools jar version to 1403 again. Also I wouldn't automatically pick the newest version as the code might not be up to date with that. |
So tl;dr: it's better to not mess with the environment variable at all in nix CI. You can override it in user space. |
Fixed with f52034c. I'll revert releasing since I need to fix another thing which I forgot in another issue. |
Thanks! Note that the |
As recommended by @borkdude[1], we should use the Clojure tools version included in a particular upstream release since the code might not always work with more recent versions. [1] borkdude/deps.clj#113 (comment)
Some time during the past two hours, the automatic download of
clojure-tools.zip
started failing with this error:Note that I ran into this by invoking
babashka.tasks/clojure
using babashka v1.3.184 but figured since the relevant code lives indeps.clj
, it'd make more sense to report it here.I suspect the root cause is that GitHub changed something on their end: Both https://github.com/clojure/brew-install/releases/download/1.11.1.1413/clojure-tools.zip and https://github.com/clojure/brew-install/releases/download/1.11.1.1413/clojure-tools.zip.sha256 now respond with a 302 redirect, so when
curl
ing them one has to pass-L
to make it follow to the new location. ISTR this wasn't the case in the past and perhaps the auto-downloader doesn't follow redirects either?The text was updated successfully, but these errors were encountered: