Skip to content

Allow tagging pre-release versions with ~ tilde character #377

Open
@praiskup

Description

RPM and Deb distributions for some time allow to use ~suffix in software
pre-release versions (or distro releases). The benefit is that tagged
Version: 2~dev is obviously devel only version, but at the same time
users can rely on the fact that 2~dev < 2, in contrast to 2_dev > 2.

So maintainers can first bump to 2~dev and later "bump" to 2 only --
and still there's guaranteed upgrade path from pre-release to production
release.

It would be nice if tito allowed us to do

tito tag --use-version=something-with-tilde

The problem here is that git doesn't allow us to create tags with ~ in
name, that's because ~ has special meaning in git version jargon. So we
would have to have some clever version to tag and tag to version
translation. E.g.

tito tag --use-version=2~dev1

.. would create <name>-<version>_prerelease_dev1-<release> tag? Ideas?
Or s/~/@/?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    RFEThis issue is a Request For Enhancement (Feature)effort/mediumCan be done in 1-2 daysgain/mediumAffects multiple users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions