gomod2nix icon indicating copy to clipboard operation
gomod2nix copied to clipboard

initial support for using fetchGit

Open cstrahan opened this issue 3 years ago • 6 comments

Generating the gomod2nix.toml appears to work, but I haven't tried building with this just yet.

The idea is that this should allow fetching private repositories (see https://github.com/tweag/gomod2nix/issues/3).

fetchGit does not work with short revs, so this:

  • Tries to use the GitHub API where possible
  • Falls back to cloning the repo in a temporary directory and then uses git rev-parse

cstrahan avatar Apr 06 '21 02:04 cstrahan