|
|
@ -37,15 +37,15 @@ BINARY_VERSION ?= ${GIT_TAG}
|
|
|
|
|
|
|
|
|
|
|
|
# Only set Version if building a tag or VERSION is set
|
|
|
|
# Only set Version if building a tag or VERSION is set
|
|
|
|
ifneq ($(BINARY_VERSION),)
|
|
|
|
ifneq ($(BINARY_VERSION),)
|
|
|
|
LDFLAGS += -X helm.sh/helm/internal/version.version=${BINARY_VERSION}
|
|
|
|
LDFLAGS += -X helm.sh/helm/v3/internal/version.version=${BINARY_VERSION}
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# Clear the "unreleased" string in BuildMetadata
|
|
|
|
# Clear the "unreleased" string in BuildMetadata
|
|
|
|
ifneq ($(GIT_TAG),)
|
|
|
|
ifneq ($(GIT_TAG),)
|
|
|
|
LDFLAGS += -X helm.sh/helm/internal/version.metadata=
|
|
|
|
LDFLAGS += -X helm.sh/helm/v3/internal/version.metadata=
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
LDFLAGS += -X helm.sh/helm/internal/version.gitCommit=${GIT_COMMIT}
|
|
|
|
LDFLAGS += -X helm.sh/helm/v3/internal/version.gitCommit=${GIT_COMMIT}
|
|
|
|
LDFLAGS += -X helm.sh/helm/internal/version.gitTreeState=${GIT_DIRTY}
|
|
|
|
LDFLAGS += -X helm.sh/helm/v3/internal/version.gitTreeState=${GIT_DIRTY}
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
.PHONY: all
|
|
|
|
all: build
|
|
|
|
all: build
|
|
|
|