aboutsummaryrefslogtreecommitdiff
path: root/.promu-cgo.yml
diff options
context:
space:
mode:
authorBen Kochie <superq@gmail.com>2018-11-30 14:01:20 +0100
committerGitHub <noreply@github.com>2018-11-30 14:01:20 +0100
commitbecca1275c77ffab31ec7082b3bd9ba9382a6c1a (patch)
tree3c201ab4743d461ecdb9ccd39928c3a9dd2a4948 /.promu-cgo.yml
parent1732478361a57dea9f7cd0f319c5a34cebcf047d (diff)
downloadprometheus_node_collector-becca1275c77ffab31ec7082b3bd9ba9382a6c1a.tar.bz2
prometheus_node_collector-becca1275c77ffab31ec7082b3bd9ba9382a6c1a.tar.xz
prometheus_node_collector-becca1275c77ffab31ec7082b3bd9ba9382a6c1a.zip
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 <superq@gmail.com>
Diffstat (limited to '.promu-cgo.yml')
-rw-r--r--.promu-cgo.yml12
1 files changed, 6 insertions, 6 deletions
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:
5build: 5build:
6 binaries: 6 binaries:
7 - name: node_exporter 7 - name: node_exporter
8 flags: -a -tags 'netgo static_build' 8 flags: -mod=vendor -a -tags 'netgo static_build'
9 ldflags: | 9 ldflags: |
10 -X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}} 10 -X github.com/prometheus/common/version.Version={{.Version}}
11 -X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}} 11 -X github.com/prometheus/common/version.Revision={{.Revision}}
12 -X {{repoPath}}/vendor/github.com/prometheus/common/version.Branch={{.Branch}} 12 -X github.com/prometheus/common/version.Branch={{.Branch}}
13 -X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildUser={{user}}@{{host}} 13 -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
14 -X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}} 14 -X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
15tarball: 15tarball:
16 files: 16 files:
17 - LICENSE 17 - LICENSE