-
Notifications
You must be signed in to change notification settings - Fork 145
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
[20.10 backport] [deb] fixes for version generating #831
Merged
thaJeztah
merged 5 commits into
docker:20.10
from
thaJeztah:20.10_backport_gen_version_fixes
Jan 19, 2023
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a0535af
static: make gen-static-ver work natively on macOS
thaJeztah 27ccbed
fix generating pre-release deb/rpm versions when using '.'
thaJeztah bfcd8fc
unify code for pseudo-versions (nightly), and fix for macOS
thaJeztah 8a720b2
deb, rpm: generate versions without special numbers for pre-releases
thaJeztah 1d6143e
[20.10] rpm, deb: continue using "3" as package version
thaJeztah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,12 @@ rpmVersion="${VERSION#v}" | |
# Docker 22.06.0-beta.1: version=22.06.0, release=1 | ||
# Docker 22.06.0-rc.1: version=22.06.0, release=1 | ||
# Docker 22.06.0-dev: version=0.0.0~YYYYMMDDHHMMSS.gitHASH, release=0 | ||
rpmRelease=1 | ||
# rpmRelease=1 | ||
|
||
# Note: on the 20.10 branch, continue using "3" as default, which was removed in | ||
# commit 8a720b28a5d0db8fc93423cca79ca21b9b69f1f1. 23.0.0 and up use "1" | ||
# as default. | ||
rpmRelease=3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, for RPMs |
||
|
||
# rpm packages require a tilde (~) instead of a hyphen (-) as separator between | ||
# the version # and pre-release suffixes, otherwise pre-releases are sorted AFTER | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert the changes from 8a720b2 for the docker-ce packages (but continue using the new format for the plugins, so that we don't push the same version of a plugin twice (once through the 23.0 release, once through the 20.10 release).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, what's the
~3
here for? (Sorry, I'm missing some context 🙈)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was used in 20.10 (and before) to.. make sure "stable" releases ranked higher than "pre-releases" (
:lolsob:
). I removed that code from master, but the same generation code is used for all deb versions, so I backported removing that ugly hack in this PR (see 8a720b2). However, as 20.10 is reaching its end, I didn't want to introduce changing the versioning scheme for it, so I added it back here. As we're not planning to do-beta
releases for 20.10 patch releases, I hardcoded it to~3
(which was used to designate "stable releases').