diff options
| author | Shulhan <ms@kilabit.info> | 2022-02-08 00:41:34 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-02-08 00:41:34 +0700 |
| commit | 72b9ee4182a9e6f95e23d2d8535b1cc641fdbd44 (patch) | |
| tree | bd0fb52cf15b620ba422f2b2a7930f7bd0cc3d9e | |
| parent | c814416265b73823c215c04f5656471b84116e19 (diff) | |
| download | gotp-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
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ .PHONY: all install all: - go test -race -failfast ./... + CGO_ENABLED=1 go test -race -failfast ./... install: go install ./cmd/gotp |
