gomod2nix/builder
adisbladis ab5ec79935 Run unit tests under subdirs
Bug:
Due to the way `buildGoDir` function was repurposed to also run `go
test`, if `checkFlags` was defined, `go test` was ran only at the top
level directory. Only the first element of `checkFlags` array would get
passed to the `go test` command as arguments.

Fix:
Now the first parameter to `buildGoDir` is handled as the command.  If
the command is "test" `checkFlags` get passed as arguments along with
other build flags like ldflags, tags, etc.

Readability:
- Iteratively build a flag array in `buildGoDir` instead of single long
  variable expansion command line.
- Bash style: Single line local assignment of positional parameters.

This is a port of 89864413b2.
2022-08-24 09:00:33 +08:00
..
install builder/install.go: Make build failures more apparent by attaching stdout/stderr 2022-08-17 15:36:21 +08:00
symlink Build non-development packages in the same way as development packages 2022-06-14 08:19:42 +08:00
default.nix Run unit tests under subdirs 2022-08-24 09:00:33 +08:00
fetch.sh fetcher: Make sure sources are writable before filtering .ds_store 2022-06-13 20:37:42 +08:00
parser.nix Invalid regex on macOS 2022-07-29 19:38:34 +08:00