mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 14:39:40 -08:00
Fix go1.5 compile flag warnings
This commit is contained in:
parent
66f376f75a
commit
b2c6378aae
|
@ -62,12 +62,12 @@ BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2> /dev/null || echo 'unk
|
||||||
HOSTNAME := $(shell hostname -f)
|
HOSTNAME := $(shell hostname -f)
|
||||||
BUILD_DATE := $(shell date +%Y%m%d-%H:%M:%S)
|
BUILD_DATE := $(shell date +%Y%m%d-%H:%M:%S)
|
||||||
BUILDFLAGS := -ldflags \
|
BUILDFLAGS := -ldflags \
|
||||||
" -X $(REPO_PATH)/version.Version $(VERSION)\
|
" -X $(REPO_PATH)/version.Version=$(VERSION)\
|
||||||
-X $(REPO_PATH)/version.Revision $(REV)\
|
-X $(REPO_PATH)/version.Revision=$(REV)\
|
||||||
-X $(REPO_PATH)/version.Branch $(BRANCH)\
|
-X $(REPO_PATH)/version.Branch=$(BRANCH)\
|
||||||
-X $(REPO_PATH)/version.BuildUser $(USER)@$(HOSTNAME)\
|
-X $(REPO_PATH)/version.BuildUser=$(USER)@$(HOSTNAME)\
|
||||||
-X $(REPO_PATH)/version.BuildDate $(BUILD_DATE)\
|
-X $(REPO_PATH)/version.BuildDate=$(BUILD_DATE)\
|
||||||
-X $(REPO_PATH)/version.GoVersion $(GO_VERSION)"
|
-X $(REPO_PATH)/version.GoVersion=$(GO_VERSION)"
|
||||||
CURL := curl
|
CURL := curl
|
||||||
|
|
||||||
ARCHIVEDIR := prometheus-$(VERSION).$(GOOS)-$(GOARCH)
|
ARCHIVEDIR := prometheus-$(VERSION).$(GOOS)-$(GOARCH)
|
||||||
|
|
Loading…
Reference in a new issue