build: format a bit the list of tools
Some checks failed
CI / 🤖 Check dependabot status (push) Has been cancelled
CI / 🐧 Test on Linux (${{ github.ref_type == 'tag' }}, misc) (push) Has been cancelled
CI / 🐧 Test on Linux (coverage) (push) Has been cancelled
CI / 🐧 Test on Linux (regular) (push) Has been cancelled
CI / ❄️ Build on Nix (push) Has been cancelled
CI / 🍏 Build and test on macOS (push) Has been cancelled
CI / 🧪 End-to-end testing (push) Has been cancelled
CI / 🔍 Upload code coverage (push) Has been cancelled
CI / 🔬 Test only Go (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 20) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 22) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 24) (push) Has been cancelled
CI / ⚖️ Check licenses (push) Has been cancelled
CI / 🐋 Build Docker images (push) Has been cancelled
CI / 🐋 Tag Docker images (push) Has been cancelled
CI / 🚀 Publish release (push) Has been cancelled
Update Nix dependency hashes / Update dependency hashes (push) Has been cancelled
Update Go toolchain / Update Go toolchain (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (asn2org) (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (iana-assignments) (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (nixpkgs) (push) Has been cancelled

This commit is contained in:
Vincent Bernat
2025-11-15 11:09:02 +01:00
parent 674192d652
commit 44b37e8a82
2 changed files with 14 additions and 11 deletions

View File

@@ -72,6 +72,7 @@ all-indep: $(GENERATED)
# Tools
BUF = env GO=$(GO) ./bin/external-tool buf
ENUMER = go tool enumer
GOIMPORTS = go tool goimports
GOTESTSUM = go tool gotestsum
@@ -80,7 +81,6 @@ PIGEON = go tool pigeon
REVIVE = go tool revive
STATICCHECK = go tool staticcheck
WWHRD = go tool wwhrd
BUF = env GO=$(GO) ./bin/external-tool buf
# Generated files
@@ -197,8 +197,8 @@ test-go-checks: ; $(info $(M) running Go static checks…)
$Q $(STATICCHECK) -f stylish -checks inherit,-SA1012 $(PKGS)
test-go-units: ; $(info $(M) running Go tests$(GOTEST_MORE))
$Q mkdir -p test/go
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) $(GOTESTSUM) \
--junitfile test/go/tests.xml -- \
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) \
$(GOTESTSUM) --junitfile test/go/tests.xml -- \
-timeout $(TIMEOUT) \
-fullpath \
$(GOTEST_ARGS) $(PKGS)
@@ -215,7 +215,8 @@ test-bench: ; $(info $(M) running benchmarks…) @ ## Run Go benchmarks
$(PKGS) # -benchmem -memprofile test/go/memprofile.out -cpuprofile test/go/cpuprofile.out
test-coverage-go: ; $(info $(M) running Go coverage tests) @ ## Run Go coverage tests
$Q mkdir -p test/go
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) $(GOTESTSUM) -- \
$Q env PATH=$(dir $(abspath $(shell command -v $(GO)))):$(PATH) \
$(GOTESTSUM) -- \
-fullpath \
-coverpkg=$(shell echo $(PKGS) | tr ' ' ',') \
-covermode=atomic \

View File

@@ -4,6 +4,8 @@
# a case we don't want to put the dependency in go.mod (which may be considered
# by an anti-pattern for some tools).
# See commit 414d626bf8f2 for an alternative.
cmd="$1"
shift