Skip to content

Commit

Permalink
make: can optionally force a version when building
Browse files Browse the repository at this point in the history
  • Loading branch information
ysoldak committed Mar 14, 2024
1 parent ef8d86b commit 41aa8a2
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
Expand Up @@ -11,7 +11,7 @@ endif

# --- Common targets ---

VERSION := $(shell git describe --tags)
VERSION ?= $(shell git describe --tags)
LD_FLAGS := -ldflags="-X 'main.Version=$(VERSION)'" # https://www.digitalocean.com/community/tutorials/using-ldflags-to-set-version-information-for-go-applications

clean:
Expand Down

0 comments on commit 41aa8a2

Please sign in to comment.