diff --git a/.promu.yml b/.promu.yml index 801f1571..fb1063af 100644 --- a/.promu.yml +++ b/.promu.yml @@ -1,6 +1,8 @@ repository: path: github.com/martinlindhe/wmi_exporter build: + binaries: + - name: wmi_exporter ldflags: | -X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}} -X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}} diff --git a/Makefile b/Makefile index 0ec8be9a..d77e9312 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,4 @@ fmt: gofmt -l -w -s . build: - promu build -v . + promu build -v diff --git a/appveyor.yml b/appveyor.yml index 540a9437..f4d590e1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -22,7 +22,7 @@ install: build_script: - ps: gitversion /output json /showvariable FullSemVer | Set-Content VERSION -PassThru - govendor test -v +local - - promu build -v . + - promu build -v - ps: | $ErrorActionPreference = "Stop" if($env:APPVEYOR_REPO_TAG -eq "True") {