From 7f57491fac06ed7f42068ab3f4d4fc7b877bb889 Mon Sep 17 00:00:00 2001 From: Calle Pettersson Date: Thu, 5 Mar 2020 21:15:26 +0100 Subject: [PATCH] Fix versioning in binary --- .promu.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.promu.yml b/.promu.yml index 61ac8a68..6dde96d1 100644 --- a/.promu.yml +++ b/.promu.yml @@ -4,11 +4,11 @@ build: binaries: - name: wmi_exporter 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