Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Include a "v" in version strings when releasing #1417

Merged
merged 2 commits into from
Mar 5, 2021

Conversation

johananl
Copy link
Member

@johananl johananl commented Mar 5, 2021

This PR ensures the version string printed by lokoctl version is consistent for binaries created using make and binaries created as part of the release process.

The GitHub URIs for released binaries are updated accordingly as well.

Fixes #1150.

To test the PR, create a fake Git tag, create a release without publishing it and ensure the printed version string has a "v":

git tag v0.7.0-test
goreleaser release --skip-publish --skip-sign
./dist/lokoctl_linux_amd64/lokoctl version

For consistency with the Git tag, we should always prepend a "v" in
front of the Lokomotive version.
We've added a "v" in front of the Lokomotive version, which affects
GitHub URIs.
Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

Copy link
Contributor

@iaguis iaguis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@johananl johananl merged commit dc7324e into master Mar 5, 2021
@johananl johananl deleted the johananl/v-in-version-strings branch March 5, 2021 15:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version string in released binaries is missing the "v"
3 participants