As far as I can tell, go2nix save only uses nix-prefetch-git to get a hash for some things:
|
func calculateHash(url, pathType string) (hash string) { |
It doesn't actually need the files to end up in the store? So it would be nice if it would just use nix-hash directly and that would mean it would be possible to run in a nix sandbox I think?
Edit: or be able to call nix-prefetch-git without needing to poke the store.
The actual error in question: Command /nix/store/8adaygqps8a6vivrwb2d5l57lz5gnxwr-nix-prefetch-git/bin/nix-prefetch-git [nix-prefetch-git --fetch-submodules file:///build/src/the.domain/go/some-project] failed: exit status 1
As far as I can tell,
go2nix saveonly usesnix-prefetch-gitto get a hash for some things:go2nix/hash.go
Line 16 in 52270bd
It doesn't actually need the files to end up in the store? So it would be nice if it would just use
nix-hashdirectly and that would mean it would be possible to run in a nix sandbox I think?Edit: or be able to call nix-prefetch-git without needing to poke the store.
The actual error in question:
Command /nix/store/8adaygqps8a6vivrwb2d5l57lz5gnxwr-nix-prefetch-git/bin/nix-prefetch-git [nix-prefetch-git --fetch-submodules file:///build/src/the.domain/go/some-project] failed: exit status 1