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

Flake installation fails with hash mismatch #51

Open
BenediktBroich opened this issue Jan 21, 2022 · 5 comments
Open

Flake installation fails with hash mismatch #51

BenediktBroich opened this issue Jan 21, 2022 · 5 comments

Comments

@BenediktBroich
Copy link

Flake installation fails.

Command (shown in Readme.md):

nix run github:tadfisher/gradle2nix -- --help

Error:

error: hash mismatch in fixed-output derivation '/nix/store/6hhf9myxx3wxl38k89l0psm1p6b7006y-jackson-parent-2.12.pom.drv':
         specified: sha256-YqocFnmt4J8XPb8bbDLTXFXnWAAjj9XkjxOqQzfAh1s=
            got:    sha256-Z749r6r4zhcX56fefbkrpDPfkjtpekDJdDpUzJ/FNjc=
error: 1 dependencies of derivation '/nix/store/bahlr2f2rkckb9kph6kh8k96gkdmh4zg-jackson-parent-2.12.pom.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pvv14dxz6npr2i3vbwdghc9wzcqazhfh-gradle2nix-gradle-plugin-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lh8rsdgkibw659fizlf1pawxy68bjm58-init.gradle.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3aw06z157ha014n19hq54nfn3zb3dzl8-gradle2nix-1.0.0-rc2.drv' failed to build
@yuri-potatoq
Copy link

I had the same problem.

$ > nix run github:tadfisher/gradle2nix -- --help

error: hash mismatch in fixed-output derivation '/nix/store/6hhf9myxx3wxl38k89l0psm1p6b7006y-jackson-parent-2.12.pom.drv':
         specified: sha256-YqocFnmt4J8XPb8bbDLTXFXnWAAjj9XkjxOqQzfAh1s=
            got:    sha256-Z749r6r4zhcX56fefbkrpDPfkjtpekDJdDpUzJ/FNjc=
error: 1 dependencies of derivation '/nix/store/bahlr2f2rkckb9kph6kh8k96gkdmh4zg-jackson-parent-2.12.pom.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pvv14dxz6npr2i3vbwdghc9wzcqazhfh-gradle2nix-gradle-plugin-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lh8rsdgkibw659fizlf1pawxy68bjm58-init.gradle.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3aw06z157ha014n19hq54nfn3zb3dzl8-gradle2nix-1.0.0-rc2.drv' failed to build

@bryandatanerds
Copy link

There's a PR open for this, #50. Maybe it will work if you run nix run github:Scoder12/gradle2nix, until that PR is merged?

@C0D3-M4513R
Copy link

C0D3-M4513R commented Nov 13, 2023

uhm? what?
something smells fishy here...

[user@nixos-pc:~/Documents/Recaf]$ nix run github:tadfisher/gradle2nix --
error: hash mismatch in fixed-output derivation '/nix/store/a56mz008i9cnfmxrqszlfcvb3ysjq79l-jackson-parent-2.12.pom.drv':
         specified: sha256-Z749r6r4zhcX56fefbkrpDPfkjtpekDJdDpUzJ/FNjc=
            got:    sha256-YqocFnmt4J8XPb8bbDLTXFXnWAAjj9XkjxOqQzfAh1s=
error: 1 dependencies of derivation '/nix/store/dgfnxv0as8q7f6qfc0slqw66wxg5c3ph-jackson-parent-2.12.pom.drv' failed to build
error: 1 dependencies of derivation '/nix/store/17sz3jbmcmsgd1hwqlzsm9bkl7amf9g5-gradle2nix-gradle-plugin-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a5zyny6vhxx4l2jiz812qwiysy1a54fx-init.gradle.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-gradle-6.8.1-all.drv-0/gradle-6.8.1/docs/userguide': Directory not empty
error: 1 dependencies of derivation '/nix/store/s7rbzczmbqbwjkig6qk1p5m4g8n70nd8-gradle2nix-1.0.0-rc2.drv' failed to build

[user@nixos-pc:~/Documents/Recaf]$ nix run github:Scoder12/gradle2nix
error: hash mismatch in fixed-output derivation '/nix/store/hrmx0nsmay49dkxaffxijdqlnbw1zmqr-jackson-parent-2.12.pom.drv':
         specified: sha256-Z749r6r4zhcX56fefbkrpDPfkjtpekDJdDpUzJ/FNjc=
            got:    sha256-YqocFnmt4J8XPb8bbDLTXFXnWAAjj9XkjxOqQzfAh1s=
error: 1 dependencies of derivation '/nix/store/y197hijlhxf0z9ipc04d35sasgmw3d7s-jackson-parent-2.12.pom.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vnpz34kc3099a0pxrkvi4h7qgs97kxb3-gradle2nix-gradle-plugin-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nzmj2hkcfm8xkbavxzh68gq989z2jvwf-init.gradle.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yx1ghwm88swv70b8ackj8jfkrxr8jzbl-gradle2nix-1.0.0-rc2.drv' failed to build

@mcamp-ata
Copy link

still getting this...

╰─ nix run github:tadfisher/gradle2nix -- --help
error: hash mismatch in fixed-output derivation '/nix/store/a56mz008i9cnfmxrqszlfcvb3ysjq79l-jackson-parent-2.12.pom.drv':
         specified: sha256-Z749r6r4zhcX56fefbkrpDPfkjtpekDJdDpUzJ/FNjc=
            got:    sha256-YqocFnmt4J8XPb8bbDLTXFXnWAAjj9XkjxOqQzfAh1s=
error: 1 dependencies of derivation '/nix/store/dgfnxv0as8q7f6qfc0slqw66wxg5c3ph-jackson-parent-2.12.pom.drv' failed to build
error: 1 dependencies of derivation '/nix/store/17sz3jbmcmsgd1hwqlzsm9bkl7amf9g5-gradle2nix-gradle-plugin-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a5zyny6vhxx4l2jiz812qwiysy1a54fx-init.gradle.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s7rbzczmbqbwjkig6qk1p5m4g8n70nd8-gradle2nix-1.0.0-rc2.drv' failed to build

@tmplt
Copy link

tmplt commented Aug 3, 2024

I asked in #75 (comment), but is this an expected hash change? Bumping hashes blindly is an anti-pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants