Skip to content

Commit

Permalink
make: fix: using tag as version
Browse files Browse the repository at this point in the history
- fix stderr redirection
- include -dirty also when using a tag as version
  • Loading branch information
fho committed Mar 20, 2023
1 parent 34db174 commit ba39220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export GO111MODULE=on
export GOFLAGS=-mod=vendor

VERSION := $(shell git describe --tags --exact 2&>/dev/null || git describe --abbrev --always --dirty)
VERSION := $(shell git describe --tags --dirty --exact 2>/dev/null || git describe --abbrev --always --dirty)
LDFLAGS := "-X main.Version=$(VERSION) -extldflags -static"

BIN = jenkins-exporter
Expand Down

0 comments on commit ba39220

Please sign in to comment.