We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc2944d commit 28c0ee2Copy full SHA for 28c0ee2
Makefile
@@ -4,6 +4,9 @@ export PATH := $(shell pwd)/.tmp/protoc/bin:$(PATH)
4
5
export PROTOC_VERSION := 22.0
6
7
+# Disable CGO for improved compatibility across distros
8
+export CGO_ENABLED=0
9
+
10
# TODO: run golint and errcheck, but only to catch *new* violations and
11
# decide whether to change code or not (e.g. we need to be able to whitelist
12
# violations already in the code). They can be useful to catch errors, but
@@ -89,7 +92,8 @@ errcheck:
89
92
90
93
.PHONY: test
91
94
test:
- go test -race ./...
95
+ # The race detector requires CGO: https://github.com/golang/go/issues/6508
96
+ CGO_ENABLED=1 go test -race ./...
97
98
.tmp/protoc/bin/protoc: ./Makefile ./download_protoc.sh
99
./download_protoc.sh
0 commit comments