-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Despite our auto-update process, I got this while updating home-manager today.
error: hash mismatch in fixed-output derivation '/nix/store/5kbpl56jlwfq7qg1z50n3byidx398snl-datumctl-dev-go-modules.drv':
specified: sha256-uYxxIsYFeYfDXKCiW+iWHSrDT4FGkc+5OJlzZwEmo4w=
got: sha256-Hj72B7lra2qU+Kj9DKP9P8/AJ3Z2p6MRTikfiSnZkO4=
Even more interesting is when I run update-nix-hash.go locally on 01e0c73 I get a different hash altogether:
$ go run scripts/update-nix-hash.go
Current vendorHash: sha256-uYxxIsYFeYfDXKCiW+iWHSrDT4FGkc+5OJlzZwEmo4w=
Updating vendorHash in flake.nix...
Running nix build to determine correct hash...
Extracted hash: sha256-xxlYC74qdbF4VS3tqbEm78SHQYDS5vIsypZZ8dDg2GM=
Updated vendorHash: sha256-uYxxIsYFeYfDXKCiW+iWHSrDT4FGkc+5OJlzZwEmo4w= -> sha256-xxlYC74qdbF4VS3tqbEm78SHQYDS5vIsypZZ8dDg2GM=
Verifying build with new hash...
warning: Git tree '/Users/aar/src/datum-cloud/datumctl' is dirty
✓ Build successful with new hash
And then the latest workflow run got a totally different hash:
task: [nix-update-hash] go run scripts/update-nix-hash.go
Current vendorHash: sha256-uYxxIsYFeYfDXKCiW+iWHSrDT4FGkc+5OJlzZwEmo4w=
Updating vendorHash in flake.nix...
Running nix build to determine correct hash...
Extracted hash: sha256-slzr63GnNwLM7T9KrwFk33oVEXemEAgWyi4VI4J1Tqw=
Updated vendorHash: sha256-uYxxIsYFeYfDXKCiW+iWHSrDT4FGkc+5OJlzZwEmo4w= -> sha256-slzr63GnNwLM7T9KrwFk33oVEXemEAgWyi4VI4J1Tqw=
Verifying build with new hash...
warning: Git tree '/home/runner/work/datumctl/datumctl' is dirty
this derivation will be built:
/nix/store/4hjcda8xf29w30scqcgw7vqbg925rqsa-datumctl-dev.drv
building '/nix/store/4hjcda8xf29w30scqcgw7vqbg925rqsa-datumctl-dev.drv'...
✓ Build successful with new hash
Metadata
Metadata
Assignees
Labels
No labels