Skip to content

Commit

Permalink
internal/version/version.go with version prefixed with 'v' like git tags
Browse files Browse the repository at this point in the history
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
  • Loading branch information
eguzki committed Oct 24, 2024
1 parent 797e3f9 commit 5a02b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5a02b09

Please sign in to comment.