From 54a2746f553d6a856eca0796471587fda5700710 Mon Sep 17 00:00:00 2001 From: Simon Law Date: Tue, 28 Jul 2026 10:46:19 -0700 Subject: [PATCH] Makefile: enable CGO for `make test` in dev shell Fixes #3401 Signed-off-by: Simon Law --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index da272671..1887e92e 100644 --- a/Makefile +++ b/Makefile @@ -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