Skip to content

Add configuration param to define PreReleaseTag separator #1674

Open
@kalmykov-sergey

Description

@kalmykov-sergey

I'm trying to use SemVer as a single identifier for all build artifacts. GitVersion Babmoo plugin is a great solution for almost all cases, but unfortunately I have linux RPM+YUM-based distribution.

RPM+YUM versioning technicaly maps to SemVer abstractions (semver pre-release + build metadata = rpm release), but doesn't allow dashes in rpm-release string. Standard GitVersion config for feature branch feature/JIRA-123 generates invalid artifacts like name-1.4.3-JIRA-123.rpm. Moreover, branch feature/JIRA.123 also generates invalid rpm version. They say similar problem appears in other package managers, but i have no details.

Current behavior comes from regex replacement of [^a-zA-Z0-9] symbols with universal separator. Now this separator is hardcoded in core and has dash = - as default value. I just want to add config parameter to specify other separator, i.e. dot = .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions