Simplify snapshot versioning guidelines #1578

Merged
james merged 1 commit from carlwgeorge/guidelines:simplify-snapshots into main 2026-10-29 16:21:41 +00:00
Owner

Our current snapshot guidelines are too complicated. Standarizing on one snapshot format should be a significant improvement, and hopefully help packagers manage snapshots correctly (i.e. proper upgrade path). This defines <number>.<revision> as the one allowed format. Using a date as the number is still allowed, as long as it is still a properly sorting number.

Resolves: #1570

Our current snapshot guidelines are too complicated. Standarizing on one snapshot format should be a significant improvement, and hopefully help packagers manage snapshots correctly (i.e. proper upgrade path). This defines `<number>.<revision>` as the one allowed format. Using a date as the number is still allowed, as long as it is still a properly sorting number. Resolves: #1570
Our current snapshot guidelines are too complicated.  Standarizing on
one snapshot format should be a significant improvement, and hopefully
help packagers manage snapshots correctly (i.e. proper upgrade path).
This defines `<number>.<revision>` as the one allowed format.  Using a
date as the number is still allowed, as long as it is still a properly
sorting number.

Resolves: #1570
@ -161,1 +155,3 @@
One of the following formats should be used for the snapshot information field:
[source, rpm-spec]
----
Version: <base_version>^<number>.<revision>
Owner

It is also possible to have <base_version>~<number>.<revision> too, since some projects do post-release version bumps and tag only at the end of the cycle.

It is also possible to have `<base_version>~<number>.<revision>` too, since some projects do post-release version bumps and tag only at the end of the cycle.
Author
Owner

The current guidelines state:

Snapshots (a version taken from the upstream source control system not associated with a release), must contain a snapshot information field after a caret (^).

Using a tilde instead is not part of the current guidelines, has not been proposed, and is not in scope for this PR. It's technically flawed anyways, but let's have that discussion once it's proposed (ideally after this PR is merged to avoid confusing multiple topics).

The current guidelines state: > Snapshots (a version taken from the upstream source control system not associated with a release), **must** contain a snapshot information field after a caret (`^`). Using a tilde instead is not part of the current guidelines, has not been proposed, and is not in scope for this PR. It's technically flawed anyways, but let's have that discussion once it's proposed (ideally after this PR is merged to avoid confusing multiple topics).
Owner

Using a tilde instead is not part of the current guidelines, has not been proposed, and is not in scope for this PR.

I'm pretty sure "~ only" used to be the preferred format for pre-release snapshots (not pre-pre-release-snapshots!) before the introduction of guidelines for ^ which (accidentally?) dropped it. But we can talk about that separately.

> Using a tilde instead is not part of the current guidelines, has not been proposed, and is not in scope for this PR. I'm pretty sure "`~` only" *used* to be the preferred format for pre-release snapshots (not pre-pre-release-snapshots!) before the introduction of guidelines for `^` which (accidentally?) dropped it. But we can talk about that separately.
carlwgeorge marked this conversation as resolved
james merged commit 63ba2356a9 into main 2026-10-29 16:21:41 +00:00
carlwgeorge deleted branch simplify-snapshots 2026-10-31 05:01:18 +00:00
Member
Deployed documentation: https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_snapshots
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
packaging/guidelines!1578
No description provided.