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

[1.1] features: Fix ociMaxVersion #3989

Closed

Conversation

rata
Copy link
Member

@rata rata commented Aug 21, 2023

We are vendoring a runtime-spec version that breaks semver. Let's just hardcode the ociMaxVersion, instead of using the version from the bindings that reports "1.0.2-dev", that should be interpreted as something bigger than "1.0.2".

That is not true according to semver, so let's just report "1.0.3-dev" that is indeed bigger according to semver. We don't expect to change the runtime-spec vendored version in the 1.1 release.


For more info, see: opencontainers/runtime-spec#1220
cc @AkihiroSuda

We are vendoring a runtime-spec version that breaks semver. Let's just
hardcode the ociMaxVersion, instead of using the version from the
bindings that reports "1.0.2-dev", that should be interpreted as
something bigger than "1.0.2".

That is not true according to semver, so let's just report "1.0.3-dev"
that is indeed bigger according to semver. We don't expect to change the
runtime-spec vendored version in the 1.1 release.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
@rata rata force-pushed the rata/fix-features-version branch from 9baadd1 to 1affd25 Compare August 21, 2023 15:16
@cyphar
Copy link
Member

cyphar commented Aug 21, 2023

How about we resolve the issue in the spec first? 😺

Copy link
Member

@cyphar cyphar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NACK, for the reasons I outlined in opencontainers/runtime-spec#1220 and opencontainers/runtime-spec#1221. If we decide to change how we do versions in the specs, we can revisit this.

I also generally don't like faking versions. umoci has to do this because the OCI spec verification tools don't handle unknown versions properly (and the +dev change was explicitly done in order to make this easier and remove the need for fake spec versions). I don't want runc to do this at all if possible.

@rata rata marked this pull request as draft August 22, 2023 09:37
@rata
Copy link
Member Author

rata commented Nov 2, 2023

Closing for the same info state: opencontainers/runtime-spec#1220.

@rata rata closed this Nov 2, 2023
@rata rata deleted the rata/fix-features-version branch November 2, 2023 17:39
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.

2 participants