Skip to content

RC tags trigger incorrect increments. #2329

@JimBobSquarePants

Description

@JimBobSquarePants

Describe the bug
Following an RC release tag version, e.g.v1.0.0-rc.2 incremented prerelease values are reset and appear to be based upon only the commit count since the release. This breaks the upgrade path for users.

I've looked at #1600 which appears to be related but only contains tests without fixes. #1844 may be related but was closed as stale.

Expected Behavior

I would expect the version to take into consideration the new RC tag and not reset.

Actual Behavior

Calculated increments are reset which leads to version numbers that are lower than previous builds.

Possible Fix

Steps to Reproduce

Using the following GitVersion.yml

continuous-delivery-fallback-tag: ci
branches:
    master:
        tag: unstable
        mode: ContinuousDeployment
    pull-request:
        tag: pr
  • Build (version increments)
  • Create Tag
  • Build (version resets)

An example of such appears at the following Github Action

Context

It's rendered my nightly builds effectively useless for consumers.

Your Environment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions