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.