We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc0681 commit f03df8fCopy full SHA for f03df8f
Makefile
@@ -1,9 +1,16 @@
1
+OS := $(shell uname -s)
2
+GO_VERSION := $(shell go version | cut -f3 -d" ")
3
+GO_MINOR_VERSION := $(shell echo $(GO_VERSION) | cut -f2 -d.)
4
+GO_PATCH_VERSION := $(shell echo $(GO_VERSION) | cut -f3 -d. | sed "s/^\s*$$/0/")
5
+MALLOC_ENV := $(shell [ $(OS) = Darwin -a $(GO_MINOR_VERSION) -eq 17 -a $(GO_PATCH_VERSION) -lt 6 ] && echo "MallocNanoZone=0")
6
+
7
.PHONY: all
8
all: setup build test bench fmt lint
9
10
.PHONY: test
11
test:
- go test -v -race -timeout 1m ./...
12
+ # NOTE: https://github.com/golang/go/issues/49138
13
+ $(MALLOC_ENV) go test -v -race -timeout 1m ./...
14
15
.PHONY: bench
16
bench:
0 commit comments