Skip to content

Commit b3603fb

Browse files
committed
Makefile: use --tags in git describe so lightweight tags resolve
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent f415133 commit b3603fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.32
2323

2424
# This version-strategy uses git tags to set the version string
2525
git_branch := $(shell git rev-parse --abbrev-ref HEAD)
26-
git_tag := $(shell git describe --exact-match --abbrev=0 2>/dev/null || echo "")
26+
git_tag := $(shell git describe --tags --exact-match --abbrev=0 2>/dev/null || echo "")
2727
commit_hash := $(shell git rev-parse --verify HEAD)
2828
commit_timestamp := $(shell date --date="@$$(git show -s --format=%ct)" --utc +%FT%T)
2929

0 commit comments

Comments
 (0)