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

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

Open
praiskup opened this issue Apr 27, 2020 · 2 comments · May be fixed by #386
Open

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

praiskup opened this issue Apr 27, 2020 · 2 comments · May be fixed by #386
Labels
effort/medium Can be done in 1-2 days gain/medium Affects multiple users RFE This issue is a Request For Enhancement (Feature)

Comments

@praiskup
Copy link
Member

praiskup commented Apr 27, 2020

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/~/@/?

@FrostyX FrostyX added the RFE This issue is a Request For Enhancement (Feature) label Apr 27, 2020
Blaimi added a commit to krumedia/tito that referenced this issue Sep 11, 2020
@Blaimi Blaimi linked a pull request Sep 11, 2020 that will close this issue
@Conan-Kudo
Copy link
Member

Using @ would be bad, since that has meaning in software ecosystems to be equivalent to =. I think a magic phrase would probably be better...

Blaimi added a commit to krumedia/tito that referenced this issue Oct 15, 2020
@xsuchy
Copy link
Member

xsuchy commented Jan 12, 2022

And

$ rpmdev-vercmp 1@1 1
1@git123 > 1

So proper tagged build will not upgrade test version. :(

@FrostyX FrostyX added effort/medium Can be done in 1-2 days gain/medium Affects multiple users labels Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/medium Can be done in 1-2 days gain/medium Affects multiple users RFE This issue is a Request For Enhancement (Feature)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants