From 5a02b09986099199cc898c02deee269c591a95a9 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Thu, 24 Oct 2024 12:07:41 +0200 Subject: [PATCH] internal/version/version.go with version prefixed with 'v' like git tags Signed-off-by: Eguzki Astiz Lezaun --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ed77d9d..e854c05 100644 --- a/Makefile +++ b/Makefile @@ -550,8 +550,8 @@ read-release-version: ## Reads release version @$(SED) -n 's/^.*Version = "\([^"]*\)".*/\1/p' $(PROJECT_PATH)/internal/version/version.go .PHONY: update-release-version -update-release-version: ## Updates release version to $(VERSION) - $(SED) -i -e 's/Version = ".*"/Version = "$(VERSION)"/' $(PROJECT_PATH)/internal/version/version.go +update-release-version: ## Updates release version to v$(VERSION). Note 'v' prefix. + $(SED) -i -e 's/Version = ".*"/Version = "v$(VERSION)"/' $(PROJECT_PATH)/internal/version/version.go # Include last to avoid changing MAKEFILE_LIST used above include ./make/*.mk