From ba392200cf6683c0d3a9e69947852a80a4690383 Mon Sep 17 00:00:00 2001 From: Fabian Holler Date: Mon, 20 Mar 2023 11:53:33 +0100 Subject: [PATCH] make: fix: using tag as version - fix stderr redirection - include -dirty also when using a tag as version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 153510e..b78b1cc 100644 --- a/Makefile +++ b/Makefile @@ -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