Charles Strahan
Charles Strahan
@szaydel Strange! I'll take a look - thanks for reporting.
Wow, so the problem was that I didn't respond to some email from ICANN regarding my contact info, so my domain name was suspended. Wish I had stayed [on top...
Oh, just realized I could do that myself :).
Nice! Think you might be able to incorporate some of https://github.com/tweag/gomod2nix/pull/11 to resolve the full git rev/SHA?
Should be possible to ditch `nix-prefetch-git` in favor of something like: ```bash $ nix eval --raw --expr '(builtins.fetchGit { url = https://github.com/some/project; rev = "f672df68b89b808dbf87fb053b10276f1db93f39"; submodules = true; }).narHash' --impure...
Tried hacking that up. There's the problem that due to the use of short revs the command line's end up looking like: ```bash nix eval --impure --json --expr '(builtins.fetchGit {...
This is what I have so far. Shame about the short rev issue... ```patch diff --git a/fetch/fetch.go b/fetch/fetch.go index d65cd9f..c50d3b3 100644 --- a/fetch/fetch.go +++ b/fetch/fetch.go @@ -1,15 +1,10 @@ package...
Another issue: ``` $ nix eval --impure --json --expr '(builtins.fetchGit { url = https://github.com/sanathkr/go-yaml; rev = "ed9d249f429b3f5a69f80a7abef6bfce81fef894"; submodules = true; }).narHash' error: Cannot find Git revision 'ed9d249f429b3f5a69f80a7abef6bfce81fef894' in ref 'master'...
We could fetch the git repos and then cache the short rev to full commit sha.
Still messing with this. Something peculiar that I've found: `vcs.RepoRootForImportPath("git.apache.org/thrift.git", false)` gives: ``` (*vcs.RepoRoot)(0xc0001bc540)({ VCS: (*vcs.Cmd)(0x991c20)(Git), Repo: (string) (len=21) "git.apache.org/thrift", Root: (string) (len=25) "git.apache.org/thrift.git" }) ``` The [docs say this](https://pkg.go.dev/golang.org/x/tools/go/vcs#RepoRoot):...