gomod2nix/builder
adisbladis 31102e0753 go: Bunch of fixes when using excludedPackages and other bits
Few things going on in this commit:

Do not print "Building subPakage $pkg" message if actually going to skip the
package. This was confusing to me when I was trying to figure out how to set
excludedPackages and seeing the "Building subpackage $pkg" messages for
packages I wanted to skip. Turns out this messages was being printed before
checking if we actually wanted to build the package and not necessarily that my
excludedPackages was wrong.

This commit also does some setup outside the buildGoDir function so that we
avoid checking `excludedPackages` for every package and cut down the number
of grep calls by half since we always want at least one grep for the default
excludedPackages, might as well just add to the patterns being checked.

Finally, adds documentation for usage of excludedPackages and subPackages. I
had to read the implementation to figure out how to correctly use these
function arguments since there was no documentation and different uses in the
code base. So this commit documents usage of the arguments.

This is a port of 8b5a7940b0
2022-06-14 19:14:19 +08:00
..
install Precompile internal packages instead of using go run 2022-06-13 20:37:42 +08:00
symlink Build non-development packages in the same way as development packages 2022-06-14 08:19:42 +08:00
default.nix go: Bunch of fixes when using excludedPackages and other bits 2022-06-14 19:14:19 +08:00
fetch.sh fetcher: Make sure sources are writable before filtering .ds_store 2022-06-13 20:37:42 +08:00
parser.nix Fix go.mod parser for repeated replace directives 2022-05-29 16:23:37 +08:00