Skip to content

Commit

Permalink
Fix build version passing in .goreleaser.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juraj Bubniak committed Dec 6, 2018
1 parent 599d095 commit d5392f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.1

* Fix build version passing in .goreleaser.yml.

## 0.3.0

* Export more metrics from stats and pools.
Expand Down

0 comments on commit d5392f9

Please sign in to comment.