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 for git dependency #109

Open
sg-qwt opened this issue Jan 26, 2024 · 0 comments
Open

hash mismatch for git dependency #109

sg-qwt opened this issue Jan 26, 2024 · 0 comments

Comments

@sg-qwt
Copy link

sg-qwt commented Jan 26, 2024

error: hash mismatch in fixed-output derivation '/nix/store/n44189m4l4rpk4cm82j6hkg171y7d1zp-systemic-2c0be3a.drv':
         specified: sha256-ODwGyIdTB5HNwMyc0FEXFZ1AVWAGEz+ItDH4SGyrLGs=
            got:    sha256-pxbxFZirXL9CD37rhXUw/MMdxMZbLkVqfZIQXSpDqaI=

Hi,

I've got a git deps in deps.edn, and I've got hash mismatch from the generated deps-lock.json

{ :deps  {
         teknql/systemic {:git/sha "2c0be3a90884f998a61f2a8174cff3c5a15a30bf"
                          :git/url "https://github.com/teknql/systemic"}
      }
}

In that json, hash says sha256-ODwGyIdTB5HNwMyc0FEXFZ1AVWAGEz+ItDH4SGyrLGs=
But during build, hash got mismatch somehow, I've manually change the hash in deps-lock.json this case.

Also a side question, when my build with mkCljApp failed, the error reports something like:

       > Execution error (ExceptionInfo) at clojure.tools.build.tasks.compile-clj/compile-clj (compile_clj.clj:114).
       > Clojure compilation failed, working dir preserved: /tmp/compile-clj14315391184760116165
       >
       > Full report at:
       > /tmp/clojure-7191403838710240967.edn

As I understand nix has its own sandbox, how would I check the report of /tmp/clojure-7191403838710240967.edn further details this case?

Best

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

1 participant