Skip to content

Conversation

@mweibel
Copy link
Contributor

@mweibel mweibel commented Feb 18, 2025

Windows OS version should match based on the full OSVersion. When sorting a manifest, the entries should be sorted using the Less function.

This is a possible fix for containerd/containerd#11366.

@mweibel mweibel force-pushed the windows-os-version-sort branch from 064fd86 to 1abe0f9 Compare February 18, 2025 08:58
@mweibel mweibel marked this pull request as ready for review April 9, 2025 10:37
Windows OS version should match based on the full OSVersion. When
sorting a manifest, the entries should be sorted using the `Less`
function.

Signed-off-by: Michael Weibel <michael@helio.exchange>
@mweibel mweibel force-pushed the windows-os-version-sort branch from 1abe0f9 to 8c0d9f9 Compare May 21, 2025 13:52
@zylxjtu
Copy link

zylxjtu commented Aug 14, 2025

This looks working from my testing

@kiashok
Copy link
Contributor

kiashok commented Aug 18, 2025

@estesp @dmcgowan Is this change ok to have? Helps to match the closest OS versions on image manifest lists that have many compatible OS versions to pull from. For example, if host is on WS2025 and the image manifest list has both WS2022 and WS2025 (in that specific order), we pick Ws2025. Without this change, we would just base the decision on ordering and pick WS2022 as it comes first in the list.

@dmcgowan dmcgowan merged commit 2e51fd9 into containerd:main Aug 21, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants