Open charles-dyfis-net opened 5 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.
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).
@charles-dyfis-net Is this still required after the recent changes?
Alternative to #17 that isn't specific to github.com