@ -44,7 +44,7 @@ BINARY_VERSION ?= ${GIT_TAG}
# Only set Version if building a tag or VERSION is set
i f n e q ( $( BINARY_VERSION ) , )
LDFLAGS += -X helm.sh/helm/v3 /internal/version.version= ${ BINARY_VERSION }
LDFLAGS += -X helm.sh/helm/v4 /internal/version.version= ${ BINARY_VERSION }
e n d i f
VERSION_METADATA = unreleased
@ -53,9 +53,9 @@ ifneq ($(GIT_TAG),)
VERSION_METADATA =
e n d i f
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 }
LDFLAGS += -X helm.sh/helm/v4 /internal/version.metadata= ${ VERSION_METADATA }
LDFLAGS += -X helm.sh/helm/v4 /internal/version.gitCommit= ${ GIT_COMMIT }
LDFLAGS += -X helm.sh/helm/v4 /internal/version.gitTreeState= ${ GIT_DIRTY }
LDFLAGS += $( EXT_LDFLAGS)
# Define constants based on the client-go version
@ -63,10 +63,10 @@ K8S_MODULES_VER=$(subst ., ,$(subst v,,$(shell go list -f '{{.Version}}' -m k8s.
K8S_MODULES_MAJOR_VER = $( shell echo $$ ( ( $( firstword $( K8S_MODULES_VER) ) + 1) ) )
K8S_MODULES_MINOR_VER = $( word 2,$( K8S_MODULES_VER) )
LDFLAGS += -X helm.sh/helm/v3 /pkg/lint/rules.k8sVersionMajor= $( K8S_MODULES_MAJOR_VER)
LDFLAGS += -X helm.sh/helm/v3 /pkg/lint/rules.k8sVersionMinor= $( K8S_MODULES_MINOR_VER)
LDFLAGS += -X helm.sh/helm/v3 /pkg/chartutil.k8sVersionMajor= $( K8S_MODULES_MAJOR_VER)
LDFLAGS += -X helm.sh/helm/v3 /pkg/chartutil.k8sVersionMinor= $( K8S_MODULES_MINOR_VER)
LDFLAGS += -X helm.sh/helm/v4 /pkg/lint/rules.k8sVersionMajor= $( K8S_MODULES_MAJOR_VER)
LDFLAGS += -X helm.sh/helm/v4 /pkg/lint/rules.k8sVersionMinor= $( K8S_MODULES_MINOR_VER)
LDFLAGS += -X helm.sh/helm/v4 /pkg/chartutil.k8sVersionMajor= $( K8S_MODULES_MAJOR_VER)
LDFLAGS += -X helm.sh/helm/v4 /pkg/chartutil.k8sVersionMinor= $( K8S_MODULES_MINOR_VER)
.PHONY : all
all : build