Skip to content

Commit

Permalink
Fix injecting value for version (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
rootwarp authored Nov 4, 2022
1 parent 2b0ce7d commit 085cc34
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 @@
VERSION := $(shell git describe --tags)
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
COMMIT_HASH := $(shell git rev-parse --short HEAD)
LDFLAGS := -ldflags="-X 'main.Version=$(BRANCH)' -X 'main.Commit=$(COMMIT_HASH)'"
LDFLAGS := -ldflags="-X 'github.com/dsrvlabs/vatz/utils.Version=$(BRANCH)' -X 'github.com/dsrvlabs/vatz/utils.Commit=$(COMMIT_HASH)'"

.PHONY: test build coverage clean

Expand Down

0 comments on commit 085cc34

Please sign in to comment.