Skip to content

Commit 7d49e3d

Browse files
authored
Merge pull request #68 from kcp-dev/fix-versioning
only consider main module versions when building new releases
2 parents 99750c8 + 4b54ac2 commit 7d49e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export GO111MODULE = on
1818
CMD ?= $(filter-out OWNERS, $(notdir $(wildcard ./cmd/*)))
1919
GOBUILDFLAGS ?= -v
2020
GIT_HEAD ?= $(shell git log -1 --format=%H)
21-
GIT_VERSION = $(shell git describe --tags --always)
21+
GIT_VERSION = $(shell git describe --tags --always --match='v*')
2222
LDFLAGS += -extldflags '-static' \
2323
-X github.com/kcp-dev/api-syncagent/internal/version.gitVersion=$(GIT_VERSION) \
2424
-X github.com/kcp-dev/api-syncagent/internal/version.gitHead=$(GIT_HEAD)

0 commit comments

Comments
 (0)