aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-02-05 21:27:16 +0700
committerShulhan <ms@kilabit.info>2022-02-05 21:27:16 +0700
commitd283d4708201bd3e2892383953c7cd78d22a641b (patch)
treef8bb18081e9664abf654121b5366403725786fb5
parent9fa8b78e8203162a79783a1e6bf9a27962e02ee8 (diff)
downloadgorankusu-d283d4708201bd3e2892383953c7cd78d22a641b.tar.xz
Makefile: run the test with CGO_ENABLED=1
In case user set CGO_ENABLED=0, the task for "all" will fail. This commit fix this by setting CGO_ENABLED to 1 when running test with -race option.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 957aeff..1baedcb 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
all:
go run ./internal/cmd/trunks build
- go test -v -race ./...
+ CGO_ENABLED=1 go test -v -race ./...
dev:
go run ./internal/cmd/trunks