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
git.sr.hut archive hashes have changed #115397
Comments
Sounds good |
I think it is preferable to switch all affected derivations to fetchzip. This should prevent this from happening again, if the actual content of the tarball is the same. |
From a quick look at the ticket, this is supposed to be a one-time change to make the hash the same as in other forges though
|
I think getting the new hashes with e.g.
+1, that seems like the best (long-term) solution. Edit: And IMO we should keep using |
the point is: with fetchzip, we don't have to trust this pinky promise (I mean, I'm sure that they intend to keep it, but it could break unwillingly). That's exactly why fetchzip exists in the first place. So 👎 on fixes keeping fetchurl. |
@symphorien oh, my bad, I didn't read your comment carefully enough :o I thought you've meant
|
Hah, same. 👍 too then |
@logan12358 #102225 is merged now so you could submit a PR to switch the affected attributes/packages to the new |
Describe the bug
Sources from archives from https://git.sr.ht fail to download with hash mismatches.
To Reproduce
Expected behavior
The hash should match and the source should download.
Additional context
It sounds like the production Sourcehut instance upgraded last month, causing changes to all generated archives (to come in-line with GNU gzip).
I've determined some packages which this affects (listed in "Maintainer information") by
grep -r 'git.sr.ht'
.I'm happy to have a go making a PR for all of these packages with the following process:
nix build
with subsituters)But if there's a better process, please let me know :)
Notify maintainers
@tadeokondrak
@fgaz
@sikmir
@primeos
@berbiche
Metadata
"x86_64-linux"
Linux 5.10.10, NixOS, 21.03.20210125.891f607 (Okapi)
yes
yes
nix-env (Nix) 2.4pre20201205_a5d85d0
"nixos-20.03.2015.e7752db2fb6, nixos-unstable-20.09pre227577.135073a87b7"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: