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.
2 parents a2a8095 + b0a7f64 commit 7a84d52Copy full SHA for 7a84d52
Makefile
@@ -40,7 +40,7 @@ build:
40
# We need to force rebuild "mackerel-check" if GOOS or GOARCH are passed.
41
build/mackerel-check: $(patsubst %,depends_on,$(GOOS)$(GOARCH))
42
mkdir -p build
43
- go build -ldflags="-s -w -X main.gitcommit=$(CURRENT_REVISION)" \
+ CGO_ENABLED=0 go build -ldflags="-s -w -X main.gitcommit=$(CURRENT_REVISION)" \
44
-o build/mackerel-check
45
46
.PHONY: depends_on
0 commit comments