Enabled CGO in tests for the race detector

This commit is contained in:
Gustavo 2023-10-24 11:45:57 -04:00
parent 1e97e5d347
commit eb4ac5e947
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ errcheck:
.PHONY: test
test:
go test -race ./...
# The race detector requires CGO: https://github.com/golang/go/issues/6508
CGO_ENABLED=1 go test -race ./...
.tmp/protoc/bin/protoc: ./Makefile ./download_protoc.sh
./download_protoc.sh