mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
feat(version): show "unreleased" when built from a branch
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
This commit is contained in:
parent
1a13366eb0
commit
9d6f2ed107
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
|
@ -40,10 +40,13 @@ ifneq ($(BINARY_VERSION),)
|
|||
LDFLAGS += -X helm.sh/helm/v3/internal/version.version=${BINARY_VERSION}
|
||||
endif
|
||||
|
||||
VERSION_METADATA = unreleased
|
||||
# Clear the "unreleased" string in BuildMetadata
|
||||
ifneq ($(GIT_TAG),)
|
||||
LDFLAGS += -X helm.sh/helm/v3/internal/version.metadata=
|
||||
VERSION_METADATA =
|
||||
endif
|
||||
|
||||
LDFLAGS += -X helm.sh/helm/v3/internal/version.metadata=${VERSION_METADATA}
|
||||
LDFLAGS += -X helm.sh/helm/v3/internal/version.gitCommit=${GIT_COMMIT}
|
||||
LDFLAGS += -X helm.sh/helm/v3/internal/version.gitTreeState=${GIT_DIRTY}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue