Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate version correctly when multiple tags are present #41

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

kichristensen
Copy link
Contributor

When multiple tags are present on the same commit, the version was calculated incorrectly. E.g., when latest, canary and v1.1.0 tags are present on the same commit, the command seems to sort alphabetically causing the version to always be set to canary. This behaviour breaks makes it impossible to release a finalized version, e.g., v1.1.0.

Using matching results in the version being calculated from the latest released version. The version will look like this v1.1.0-2-gf3862833 instead of canary when running a canary build.

When multiple tags are present on the same commit, the version was
calculated incorrectly. E.g., when `latest`, `canary` and `v1.1.0` tags
are present on the same commit, the command seems to sort alphabetically
causing the version to always be set to `canary`. This behaviour breaks
makes it impossible to release a finalized version, e.g., `v1.1.0`.

Using matching results in the version being calculated from the latest
released version. The version will look like this `v1.1.0-2-gf3862833`
instead of `canary`.

Signed-off-by: Kim Christensen <kmch@simcorp.com>
@schristoff schristoff merged commit 081303e into getporter:main Jun 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants