Skip to content

[ISSUE]: 6.2.0 seems to discard tag prefix #4478

@trondhindenes

Description

@trondhindenes

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

GitVersion.Tool

GitVersion version

6.2.0

Operating system

Linux

What are you seeing?

Given a gitversion config like this tag-prefix: 'GRID/', we're now getting Failed to parse GRID/4.101.6 into a Semantic Version after moving from 6.1.0 to 6.2.0. We're passing this tag in using:

LATEST_TAG=$(git tag --list 'GRID/*' | sort --version-sort | tail -n 1)
/overrideconfig next-version=$LATEST_TAG

What is expected?

gitversion should remove the tag-prefix before attempting to parse the tag into a version

Steps to Reproduce

See above

RepositoryFixture Test

No response

Output log or link to your CI build (if appropriate).

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