From 17e6de6a73f7127dea56f24b0dfb579f201d883b Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Thu, 29 Nov 2018 11:00:54 +0100 Subject: [PATCH] promu: fix ldflags for Go modules Signed-off-by: Simon Pasquier --- .promu.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.promu.yml b/.promu.yml index 002e9e3..ebf914b 100644 --- a/.promu.yml +++ b/.promu.yml @@ -7,11 +7,11 @@ repository: build: flags: -mod=vendor -a -tags netgo 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: - blackbox.yml -- 2.25.1