From d5392f9d10004be103e639b39a1cd7d6e262003a Mon Sep 17 00:00:00 2001 From: Juraj Bubniak Date: Thu, 6 Dec 2018 17:21:04 +0100 Subject: [PATCH] Fix build version passing in .goreleaser.yml. --- .goreleaser.yml | 6 +++--- CHANGELOG.md | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 25838e2..bfdf853 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,9 +10,9 @@ builds: ldflags: | -s -w - -X github.com/jbub/pgbouncer_exporter/vendor/github.com/prometheus/common/version.Version={{.Version}} - -X github.com/jbub/pgbouncer_exporter/vendor/github.com/prometheus/common/version.Revision={{.Commit}} - -X github.com/jbub/pgbouncer_exporter/vendor/github.com/prometheus/common/version.BuildDate={{.Date}} + -X github.com/prometheus/common/version.Version={{ .Version }} + -X github.com/prometheus/common/version.Revision={{ .Commit }} + -X github.com/prometheus/common/version.BuildDate={{ .Date }} -extldflags '-static' flags: -tags netgo env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 40ccdf6..29c1a16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.1 + +* Fix build version passing in .goreleaser.yml. + ## 0.3.0 * Export more metrics from stats and pools.