aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-02-08 00:41:34 +0700
committerShulhan <ms@kilabit.info>2022-02-08 00:41:34 +0700
commit72b9ee4182a9e6f95e23d2d8535b1cc641fdbd44 (patch)
treebd0fb52cf15b620ba422f2b2a7930f7bd0cc3d9e /Makefile
parentc814416265b73823c215c04f5656471b84116e19 (diff)
downloadgotp-72b9ee4182a9e6f95e23d2d8535b1cc641fdbd44.tar.xz
Makefile: set the CGO_ENABLED to 1 on go test command
In case user set the CGO_ENABLED environment to 0, running "make all" will fail with the following error: go: -race requires cgo; enable cgo by setting CGO_ENABLED=1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 074ea4b..fc41a87 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
.PHONY: all install
all:
- go test -race -failfast ./...
+ CGO_ENABLED=1 go test -race -failfast ./...
install:
go install ./cmd/gotp