mirror of
https://github.com/unpoller/unpoller.git
synced 2026-09-30 03:21:28 +02:00
Fix up build
* Use `go mod download` for "vendor", as the `vendor/` dir is ignored by the build anyway. * Fix branch info embedding when not running in Travis. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ endef
|
||||
PLUGINS:=$(patsubst plugins/%/main.go,%,$(wildcard plugins/*/main.go))
|
||||
|
||||
VERSION_LDFLAGS:= \
|
||||
-X github.com/prometheus/common/version.Branch=$(TRAVIS_BRANCH) \
|
||||
-X github.com/prometheus/common/version.Branch=$(BRANCH) \
|
||||
-X github.com/prometheus/common/version.BuildDate=$(DATE) \
|
||||
-X github.com/prometheus/common/version.Revision=$(COMMIT) \
|
||||
-X github.com/prometheus/common/version.Version=$(VERSION)-$(ITERATION)
|
||||
@@ -285,7 +285,7 @@ lint:
|
||||
# This is safe; recommended even.
|
||||
dep: vendor
|
||||
vendor: go.mod go.sum
|
||||
go mod vendor
|
||||
go mod download
|
||||
|
||||
# Don't run this unless you're ready to debug untested vendored dependencies.
|
||||
deps: update vendor
|
||||
|
||||
Reference in New Issue
Block a user