go2nix
go2nix copied to clipboard
Unable to find vendored packages
I have some tools for which I'm overriding golang.org/x/crypto/openpgp
inside my local codebase (with a directory src/mypackage/vendor/golang.org/x/crypto/openpgp
).
go build
works correctly, but go2nix save
fails with cannot find package "golang.org/x/crypto/openpgp"
.
A symlink (to mypackage/vendor/golang.org
from src/golang.org
) works around the issue -- but is this something that should be needed?
this doesn't save https://gitea.com/gitea/tea for example and linking doesn't help either, says 'Cannot find repo root for'