Closed yemouu closed 1 year ago
Does Gentoo have a mode to fetch dependencies over network separately outside the program's build code? Nixpkgs fetched all Go modules this way separate of the program, but needing the program itself to tack all repositories into one is rather weird.
Would having a different repository that uses Git submodules to keep the vendor directories separate work?
Gentoo did have a method to prefetch the modules but this is being deprecated because they were running into some limitations. They now recommend using vendored tar files.
Having a separate repo with the vendor directory should work
Vendoring go modules is useful when packaging on distros that prefer to compile without networking. Eg: Gentoo