Makefile: enable CGO for make test in dev shell

Fixes #3401

Signed-off-by: Simon Law <sfllaw@tailscale.com>
This commit is contained in:
Simon Law
2026-07-28 10:46:19 -07:00
committed by Kristoffer Dalby
parent cfd845cb53
commit 54a2746f55

View File

@@ -45,7 +45,7 @@ build: check-deps $(GO_SOURCES) go.mod go.sum
.PHONY: test
test: check-deps $(GO_SOURCES) go.mod go.sum
@echo "Running Go tests..."
go test -race ./...
CGO_ENABLED=1 go test -race ./...
# Formatting targets