From becca1275c77ffab31ec7082b3bd9ba9382a6c1a Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Fri, 30 Nov 2018 14:01:20 +0100 Subject: Convert to Go modules (#1178) * Convert to Go modules * Update promu config. * Convert to Go modules. * Update vendoring. * Update Makefile.common. * Update circleci config. * Use Prometheus release tar for promtool. * Fixup unpack * Use temp dir for unpacking tools. * Use BSD compatible tar command. * OpenBSD mkdir doesn't support `-v`. Signed-off-by: Ben Kochie --- .promu-cgo.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.promu-cgo.yml') diff --git a/.promu-cgo.yml b/.promu-cgo.yml index adb6d19..a4e0a3c 100644 --- a/.promu-cgo.yml +++ b/.promu-cgo.yml @@ -5,13 +5,13 @@ repository: build: binaries: - name: node_exporter - flags: -a -tags 'netgo static_build' + flags: -mod=vendor -a -tags 'netgo static_build' ldflags: | - -X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}} - -X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}} - -X {{repoPath}}/vendor/github.com/prometheus/common/version.Branch={{.Branch}} - -X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildUser={{user}}@{{host}} - -X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}} + -X github.com/prometheus/common/version.Version={{.Version}} + -X github.com/prometheus/common/version.Revision={{.Revision}} + -X github.com/prometheus/common/version.Branch={{.Branch}} + -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}} + -X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}} tarball: files: - LICENSE -- cgit v1.2.3