Make version informations consistent between prometheus components
This also fixes #231 by adding the '-version' flag
This commit is contained in:
parent
d890b63fb5
commit
60cbc9efc0
7 changed files with 122 additions and 62 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue