nix-community / vgo2nix

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

Allow arbitrary remapping of URL prefixes #26

Open charles-dyfis-net opened 5 years ago

charles-dyfis-net commented 5 years ago

Alternative to #17 that isn't specific to github.com

tomberek commented 4 years ago

I've had luck with this to get a build working on a single machine, but then the build fails on other machines with:

exporting ssh://git@gitlab.com/someplace/go-project.git (rev v1.1.2) into /nix/store/x3hx74y89yniq9k5qpzjr4yykmbypyzv-go-cryptoservice
Initialized empty Git repository in /nix/store/x3hx74y89yniq9k5qpzjr4yykmbypyzv-go-project/.git/
Could not create directory '/var/empty/.ssh'.
Host key verification failed.
fatal: Could not read from remote repository.

which seems to happen on NixOS or multi-user installs. This occurs even if the derivation is in a binary store.

charles-dyfis-net commented 4 years ago

To address that conclusively, we'd need to implement #29, to be able to switch to Nix 2.0's fetchGit (which performs the fetch as the invoking user).

SuperSandro2000 commented 3 years ago

@charles-dyfis-net Is this still required after the recent changes?