diamondburned / gotktrix

Matrix client in Go and GTK4
GNU Affero General Public License v3.0
313 stars 7 forks source link

Automatically vendor go modules on release #40

Closed yemouu closed 1 year ago

yemouu commented 2 years ago

Vendoring go modules is useful when packaging on distros that prefer to compile without networking. Eg: Gentoo

diamondburned commented 2 years 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?

yemouu commented 2 years ago

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