diff --git a/Makefile b/Makefile index 539f1dbc7..5a0c537ec 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ GO_TEST_PARALLEL := $(shell echo $$(( $(NPROCS) / 2 ))) GO_REQUIRED_VERSION = 1.19 GO_STATIC_PACKAGES = $(GO_PROJECT)/cmd/crossplane $(GO_PROJECT)/cmd/crank $(GO_PROJECT)/cmd/xfn -GO_LDFLAGS += -X $(GO_PROJECT)/internal/version.version=$(VERSION) +GO_LDFLAGS += -X $(GO_PROJECT)/internal/version.version=$(shell echo $(VERSION) | sed 's/[\.,-]up.*//' ) GO_SUBDIRS += cmd internal apis GO111MODULE = on GOLANGCILINT_VERSION = 1.50.1 @@ -178,4 +178,4 @@ crossplane.help: help-special: crossplane.help -.PHONY: crossplane.help help-special \ No newline at end of file +.PHONY: crossplane.help help-special