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

packer: fix hash mismatch #96700

Merged
merged 1 commit into from Aug 31, 2020
Merged

Conversation

stigtsp
Copy link
Member

@stigtsp stigtsp commented Aug 30, 2020

Motivation for this change
hash mismatch in fixed-output derivation '/nix/store/1x9w8wf4qfgf2xnmafjmqd2mshzk47hr-source':
  wanted: sha256:104jw2jcshzds74d7m4yqn6mbk7lgps6qnqmp6h395b1mdyjhink
  got:    sha256:0kr9whv3s0f8866yjmwg311j3kcj29bp5xwpnv43ama4m1mq3bm7
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

hash mismatch in fixed-output derivation '/nix/store/1x9w8wf4qfgf2xnmafjmqd2mshzk47hr-source':
  wanted: sha256:104jw2jcshzds74d7m4yqn6mbk7lgps6qnqmp6h395b1mdyjhink
  got:    sha256:0kr9whv3s0f8866yjmwg311j3kcj29bp5xwpnv43ama4m1mq3bm7
@stigtsp stigtsp requested a review from Ma27 August 30, 2020 22:22
@stigtsp
Copy link
Member Author

stigtsp commented Aug 30, 2020

@GrahamcOfBorg build packer

@Ma27
Copy link
Member

Ma27 commented Aug 30, 2020

tbh I'm somewhat confused. On 6716867 it builds fine:

nix-build -A packer.src --check                                                                                                                                                                      [6716867eb3e]
checking outputs of '/nix/store/7jq9z16s2v5lyg6vw447jx6z8bhm1cci-source.drv'...

trying https://github.com/hashicorp/packer/archive/v1.6.2.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   124  100   124    0     0    427      0 --:--:-- --:--:-- --:--:--   427
100 16.5M    0 16.5M    0     0  1704k      0 --:--:--  0:00:09 --:--:-- 1826k
unpacking source archive /build/v1.6.2.tar.gz
/nix/store/ph8s2jpsl35wwl36ymb7mk0q1c5cmvgg-source

@stigtsp
Copy link
Member Author

stigtsp commented Aug 30, 2020

Hm, odd. I'm getting:

 $ git rev-parse HEAD
6716867eb3e763818000eab04f378b86cadc2894
 $ nix-build  -A packer.src
these derivations will be built:
  /nix/store/7jq9z16s2v5lyg6vw447jx6z8bhm1cci-source.drv
building '/nix/store/7jq9z16s2v5lyg6vw447jx6z8bhm1cci-source.drv'...

trying https://github.com/hashicorp/packer/archive/v1.6.2.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   124  100   124    0     0    417      0 --:--:-- --:--:-- --:--:--   416
100 16.5M    0 16.5M    0     0  4748k      0 --:--:--  0:00:03 --:--:-- 5750k
unpacking source archive /build/v1.6.2.tar.gz
hash mismatch in fixed-output derivation '/nix/store/1x9w8wf4qfgf2xnmafjmqd2mshzk47hr-source':
  wanted: sha256:104jw2jcshzds74d7m4yqn6mbk7lgps6qnqmp6h395b1mdyjhink
  got:    sha256:0kr9whv3s0f8866yjmwg311j3kcj29bp5xwpnv43ama4m1mq3bm7
error: build of '/nix/store/7jq9z16s2v5lyg6vw447jx6z8bhm1cci-source.drv' failed

@andersk
Copy link
Contributor

andersk commented Aug 30, 2020

My observation agrees with @stigtsp, and so does Hydra. Perhaps upstream force-pushed the tag and @Ma27 has the old version cached.

Copy link
Member

@Ma27 Ma27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cache failures shouldn't happen with --check. However I can reproduce the issue as well now -> merging. Sorry for the disruption!

@Ma27 Ma27 merged commit 873a776 into NixOS:master Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants