nix-community / vgo2nix

Convert go.mod files to nixpkgs buildGoPackage compatible deps.nix files [maintainer=@adisbladis]
MIT License
89 stars 21 forks source link

Fix hash mismatch when the repo of a dependency has submodules #12

Closed ento closed 5 years ago

ento commented 5 years ago

The mismatch happened when I tried to build segmentio/chamber, which depends on segmentio/backo-go.

The error looks like:

fixed-output derivation produced path '/nix/store/...' with sha256 hash '\' instead of the expected hash '\'

How this happened, to my understanding:

Until the mismatch in defaults is fixed upstream, which is tracked here, the easiest fix is to match how we call nix-prefetch-git with how fetchgit is called.

adisbladis commented 5 years ago

LGTM! Thank you!