Skip to content

Commit

Permalink
Fix generated binary versions
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Bjoerkelund <[email protected]>
  • Loading branch information
marcosbc committed Aug 3, 2022
1 parent 54fbfc6 commit cb7711b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BUILD_DIR := $(abspath ./out)
TOOL_NAME ?= $(shell basename $(CURDIR))
TOOL_PATH ?= $(BUILD_DIR)/$(TOOL_NAME)

GIT_VERSION := $(shell git describe --always)
GIT_VERSION := $(shell git describe --always --tags)
GIT_DATE := $(shell date -u '+%Y-%m-%d %I:%M:%S UTC' 2> /dev/null)
GIT_HASH := $(shell git rev-parse HEAD 2> /dev/null)
LDFLAGS="-X 'main.VERSION=$(GIT_VERSION)' -X 'main.BUILD_DATE=$(GIT_DATE)' -X 'main.COMMIT=$(GIT_HASH)' -s -w"
Expand Down

0 comments on commit cb7711b

Please sign in to comment.