Make version informations consistent between prometheus components

This also fixes #231 by adding the '-version' flag
This commit is contained in:
Steve Durrheimer 2016-04-30 19:58:17 +02:00
commit 60cbc9efc0
No known key found for this signature in database
GPG key ID: 8F443EBA70F74839
7 changed files with 122 additions and 62 deletions

View file

@ -3,10 +3,11 @@ repository:
path: github.com/prometheus/node_exporter
build:
ldflags: |
-X main.Version={{.Version}}
-X {{repoPath}}/collector.Version={{.Version}}
-X {{repoPath}}/collector.Revision={{.Revision}}
-X {{repoPath}}/collector.Branch={{.Branch}}
-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"}}
tarball:
files:
- LICENSE