Skip to content

Commit 83be39a

Browse files
fix: version format in finch info (runfinch#1394)
fix: version format inf finch info Signed-off-by: Shubharanshu Mahapatra <[email protected]>
1 parent 759a616 commit 83be39a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ VDE_INSTALL ?= /opt/finch
2828
ARCH ?= $(shell uname -m)
2929
SUPPORTED_ARCH = false
3030
LICENSEDIR := $(OUTDIR)/license-files
31-
VERSION ?= $(shell git describe --match 'v[0-9]*' --dirty='.modified' --always --tags)
31+
VERSION ?= $(shell git describe --match 'v[0-9]*' --dirty='.modified' --abbrev=0 --always --tags)
3232
GITCOMMIT ?= $(shell git rev-parse HEAD)$(shell test -z "$(git status --porcelain)" || echo .m)
3333
VERSION_INJECTION := -X $(PACKAGE)/pkg/version.Version=$(VERSION)
3434
VERSION_INJECTION += -X $(PACKAGE)/pkg/version.GitCommit=$(GITCOMMIT)
@@ -58,7 +58,7 @@ endif
5858

5959
# This variable is used to inject the version of Lima (via ldflags) to be used with Lima's
6060
# osutil.LimaUser function.
61-
LIMA_TAG=$(shell cd deps/finch-core/src/lima && git describe --match 'v[0-9]*' --dirty='.modified' --always --tags)
61+
LIMA_TAG=$(shell cd deps/finch-core/src/lima && git describe --match 'v[0-9]*' --dirty='.modified' --abbrev=0 --always --tags)
6262
LIMA_VERSION := $(patsubst v%,%,$(LIMA_TAG))
6363
# This value isn't used on Linux, but the symbol is currently defined on all platforms, so
6464
# it doesn't hurt to always inject it right now.

0 commit comments

Comments
 (0)