-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<nix/fetchurl.nix> auto-uncompresses xz files #2512
Comments
@cleverca22 got this when downloading an xz file when running the command on NixOS/nixpkgs#49071 (comment), namely with this file: (Note that this file isn't to blame, it's Nix's logic that changed and made the |
CC @dtzWill |
From @cleverca22 :
|
I can reproduce this with nixUnstable but not nix, on current nixos-unstable. |
Commands to reproduce the working and non-working situations, don't run if you put valuable things in Works:
Fails:
Contrary (I think?) to what's reported above (or maybe I misread), it seems 2.1.3 works fine but unstable has the problem? Hmm, just checked and unstable appears to be 2.1 -- that is, older than |
The commit log for 2.1.3 since that release ( Good news is this seems to suggest there is no problem lurking. (seems to be dupe of #2393) |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
nix-build ~/nixpkgs/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix -A bootstrapTools
with older versions of nix, this correctly fetches the
.tar.xz
and the hash check passeswith master (and the version in nixos-unstable), it fetches the
.tar.xz
and then uncompresses it, resulting in a/nix/store/hash.tar.xz
that contains only atar
, and therefore, fails the hashcheckit also doesnt fail for any other arch, because the binary cache has a copy of the file, and is masking the failure
The text was updated successfully, but these errors were encountered: