Skip to content
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

hash mismatch in downloaded file #179601

Closed
lockejan opened this issue Jun 29, 2022 · 2 comments
Closed

hash mismatch in downloaded file #179601

lockejan opened this issue Jun 29, 2022 · 2 comments
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin

Comments

@lockejan
Copy link
Contributor

lockejan commented Jun 29, 2022

Describe the bug

A clear and concise description of what the bug is.
Due to case insensitivity of darwins filesystem a pretty similar bug ended up in unstable:
#178509

However, in this case I don't understand why this happens. I'm not on unstable-channel, but maybe it's because of the same reason?

error: hash mismatch in file downloaded from 'https://api.github.com/repos/nixos/nixpkgs/tarball/f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5':
         specified: sha256:1z28a3gqbv62sxahlssc5a722kh46f26f5ss3arbxpv7a1272vf1
         got:       sha256:1n2z95321nccy3y9h8zw3gsgzwkaigypkybqjva31qd6xb4dl3d1

This commit isn't part of the 22.05 darwin release.

Steps To Reproduce

Steps to reproduce the behavior:

  1. use any recent channel, e.g. https://nixos.org/channels/nixpkgs-unstable or https://nixos.org/channels/nixpkgs-22.05-darwin or even nixpkgs-22.05-nixos (it happens on all of them)
  2. sudo -i nix-channel --update
  3. darwin-rebuild switch

Additional context

sudo -i nix-channel --list

darwin https://github.com/LnL7/nix-darwin/archive/master.tar.gz
home-manager https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz
nixpkgs https://nixos.org/channels/nixpkgs-22.05-darwin

Notify maintainers

@NixOS/darwin-maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.5.0, macOS 12.4`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.8.1`
 - channels(lockejan): `""`
 - channels(root): `"darwin, home-manager-22.05.tar.gz, nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
@lockejan lockejan added 0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin labels Jun 29, 2022
@lockejan
Copy link
Contributor Author

lockejan commented Jun 29, 2022

I tried the mentioned workarounds from NixOS/nix#1885
But without success.
nix-garbage-collect and switching to another channel didn't help either.

@SuperSandro2000
Copy link
Member

Closing as dupe of the linked issue above. Also this is a nix issue, not nixpkgs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

2 participants