-
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
docker-buildx-plugin packages use incorrect version format #814
Comments
I want to avoid adding an epoch, as that would only dig in deeper;
|
😞 this is a rough one The common solution in Debian for a mistake like this is judicious use of something like While we're at it, we should fix |
So a v0.10.1 indeed would be higher, and we can use the same suffixes as we use for the dpkg --compare-versions "0.10.1~ubuntu-jammy" ">>" "0.10.0-rc2~ubuntu-jammy" && echo "OK"
OK
dpkg --compare-versions "0.10.1-0~ubuntu.22.04.0~jammy" ">>" "0.10.0-rc2~ubuntu-jammy" && echo "OK" |
@tianon what format would you suggest if we want to mention both the version number (22.04) and codename (jammy)? I recall we included both because;
|
If you really want both, then what the engine is currently doing is best because it'll sort correctly (with the codename as the very last component, and ie, |
(the |
The version string is not formatted correctly (using
-rc2
, with a hyphen), which causes0.10.0-rc2
to be considered newer than0.10.0
;For the
docker-ce
anddocker-ce-cli
packages we have code in place to generate a correct version string (using~
instead of-
, and appending a-0
for packaging fixes);Changes for the docker-ce / docker-ce-cli packages were added in #701
But the version-string for Buildx (and other plugins) are passed as-is, and likely because of that result in the incorrect format;
docker-ce-packaging/deb/common/rules
Lines 111 to 126 in e9ca925
The text was updated successfully, but these errors were encountered: