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 9cd4986 commit 5f1297cCopy full SHA for 5f1297c
Makefile
@@ -1,5 +1,5 @@
1
-VERSION = 0.48.0
2
-CURRENT_REVISION = $(shell git rev-parse --short HEAD)
+# This VERSION variable indicates the latest tag.
+VERSION = $(subst v,,$(shell git describe --abbrev=0 --tags))
3
ifeq ($(OS),Windows_NT)
4
GOPATH_ROOT:=$(shell cygpath ${GOPATH})
5
else
@@ -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
- CGO_ENABLED=0 go build -ldflags="-s -w -X main.gitcommit=$(CURRENT_REVISION)" \
+ CGO_ENABLED=0 go build -ldflags="-s -w" \
44
-o build/mackerel-check
45
46
.PHONY: depends_on
0 commit comments