Skip to content

Commit

Permalink
hotfix: set version to tag if commitid is empty in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wencaiwulue committed Oct 9, 2024
1 parent 1005075 commit 13784f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
VERSION ?= $(shell git tag -l --sort=v:refname | tail -1)
VERSION ?=
ifeq ($(VERSION),)
VERSION = $(shell git tag -l --sort=v:refname | tail -1)
endif
GIT_COMMIT ?= $(shell git describe --match=NeVeRmAtCh --always --abbrev=7)
BUILD_TIME ?= $(shell date +"%Y-%m-%dT%H:%M:%SZ")
BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
Expand Down

0 comments on commit 13784f6

Please sign in to comment.