nixpkgs/pkgs
Berk D. Demir 89864413b2 go-modules/packages: 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.
2022-06-01 00:52:20 +00:00
..
applications Merge master into staging-next 2022-06-01 00:02:36 +00:00
build-support Merge master into staging-next 2022-05-31 18:01:11 +00:00
common-updater
data Merge master into staging-next 2022-05-31 18:01:11 +00:00
desktops Merge master into staging-next 2022-05-31 18:01:11 +00:00
development go-modules/packages: Run unit tests under subdirs 2022-06-01 00:52:20 +00:00
games Merge pull request #175223 from fsdlkj/update-taisei 2022-05-31 18:57:37 +08:00
misc
os-specific Merge master into staging-next 2022-06-01 00:02:36 +00:00
pkgs-lib
servers Merge master into staging-next 2022-06-01 00:02:36 +00:00
shells Merge pull request #175178 from Artturin/rustthing1 2022-05-31 18:32:53 +03:00
stdenv Merge staging-next into staging 2022-05-31 18:01:50 +00:00
test
tools Merge staging-next into staging 2022-06-01 00:03:08 +00:00
top-level Merge staging-next into staging 2022-06-01 00:03:08 +00:00