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

Consistent snapshot version handling #920

Closed
AMDmi3 opened this issue Sep 19, 2019 · 2 comments
Closed

Consistent snapshot version handling #920

AMDmi3 opened this issue Sep 19, 2019 · 2 comments

Comments

@AMDmi3
Copy link
Member

AMDmi3 commented Sep 19, 2019

I'm puzzled each time I have to handle snapshot patterns in some new repository, so there's a need to at least decide on consistent way to handle them.

How should we represent a snapshot version to the user?

  • Debian may have 1.2.3~beta1~20110101, should the date be included into user visible version?
  • RPM distros may have version 1.2.3 revision 1.beta1.20110101, should date be added to the version?
  • GUIX may have 1.2.3-0.a1b2c3d or 1.2.3-1.a1b2c3d (which are ordered differently against 1.2.3 btw.)
  • Other distros may have e.g. 1.2.3.20110101

Do we always include snapshot information? Do we always remove snapshot part? How do we deal with ordering? To what extend do we want to encourage distros to switch to consistent scheme? To which one?

Related: #345 #218 #811 #575.

@AMDmi3 AMDmi3 changed the title Consistent snapshot handling Consistent snapshot version handling Sep 23, 2019
@holgersson32644
Copy link

As far as I see it snapshots are used when upstream does not create proper releases or does not yet do so, i.e. the package is younger than the youngest official release from upstream.
That’s my perspective running Gentoo and maintaining some packages here.

Therefore I propose you keep the date visible to the user (and maybe link to a FAQ explaining these strange bunch of numbers to new Linux users).

@AMDmi3
Copy link
Member Author

AMDmi3 commented Sep 30, 2021

I don't think I'm going to work on this. Recently I've improved handling of RPM and Debian versions, now less garbage is stripped, and the current policy is to mark snapshots with versions greater than the latest official as ignored and snapshots with versions lesser than latest official are automatically outdated. Incompatible snapshot schemes (e.g. 2021-01-01 when upstream uses X.Y.Z) are always marked incorrect.

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

No branches or pull requests

2 participants