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

downgrade minimum required version of hcsshim to v0.10.0 #5

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Jan 20, 2024

This updates the minimum required version for hcsshim's "osversion" package to v0.10.0, which is the first (non-rc) version providine the CheckHostAndContainerCompat utility that's used, which was added in microsoft/hcsshim@640a560.

Containerd 1.6 LTS currently uses hcsshim v0.9.10, so would need to be updated to use the platforms module. Containerd 1.7 already uses hcsshim v0.11.4, so can continue using that version (or higher if needed).

This patch downgrades the required version to the lowest version providing the CheckHostAndContainerCompat, to make Go modules "minimum version selection" work, and to allow consumers to select a version of the hcsshim needed for their use (any version higher than v0.10.0).

This updates the minimum required version for hcsshim's "osversion"
package to v0.10.0, which is the first (non-rc) version providine the
`CheckHostAndContainerCompat` utility that's used, which was added in
[microsoft/hcsshim@640a560].

Containerd 1.6 LTS currently uses hcsshim [v0.9.10], so would need to be
updated to use the platforms module. Containerd 1.7 already uses hcsshim
[v0.11.4], so can continue using that version (or higher if needed).

This patch downgrades the required version to the lowest version providing
the `CheckHostAndContainerCompat`, to make Go modules "minimum version
selection" work, and to allow consumers to select a version of the hcsshim
needed for their use (any version higher than v0.10.0).

[microsoft/hcsshim@640a560]: microsoft/hcsshim@640a560
[v0.9.10]: https://github.com/containerd/containerd/blob/v1.6.27/go.mod#L9
[v0.11.4]: https://github.com/containerd/containerd/blob/v1.7.12/go.mod#L10

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@dmcgowan dmcgowan merged commit db76a43 into containerd:main Jan 22, 2024
7 checks passed
@thaJeztah thaJeztah deleted the lower_deps branch January 22, 2024 14:16
@AkihiroSuda
Copy link
Member

Shall we release v0.1.1?

@AkihiroSuda
Copy link
Member

@thaJeztah
Copy link
Member Author

Thanks!

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