Skip to content

Conversation

@dsteeley
Copy link
Contributor

@dsteeley dsteeley commented Aug 29, 2025

oci-spec 0.8.2 has made a breaking change to it's config API changing the history field to be Optional to align with the OCI spec, see youki-dev/oci-spec-rs#288.

I've made changes here to accommodate this change and tagged as 0.6.0 as this is breaking change to the API of ocidir.

Whilst in the area I've run cargo fmt and fixed up some clippy warnings about elided lifetimes.

Q for reviewer, should this be released at 0.5.1 so downstream consumers can take the fix without needing to make changes?

…n oci-spec from Vec to Option<Vec>. Additionally resolve clippy warnings.

Signed-off-by: David Steele <david.steele@alianza.com>
Signed-off-by: David Steele <david.steele@alianza.com>
@cgwalters
Copy link
Collaborator

oci-spec 0.8.2 has made a breaking change to it's config API changing the history field to be Optional

I think they should have made a semver bump, but that's an argument to have over in youki-dev/oci-spec-rs#288 (comment)

@cgwalters
Copy link
Collaborator

On the condition they refuse to yank 0.8.2 and re-do with a semver bump, then in this project we must also bump our requirement on oci-spec to be >= 0.8.2

description = "A Rust library for reading and writing OCI (opencontainers) layout directories"
version = "0.5.0"
edition = "2021"
edition = "2024"
Copy link
Collaborator

Choose a reason for hiding this comment

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

OK as is but I would have preferred something like this as a distinct PR.

.build()
.unwrap();
config.history_mut().push(h);
match config.history_mut() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

OK as is but I think it'd be cleaner to do e.g.
config.history.get_or_insert_with(Vec::new).push(h) or so

@cgwalters cgwalters merged commit c5a462b into bootc-dev:main Aug 30, 2025
3 checks passed
@cgwalters
Copy link
Collaborator

Followup in #45

@dsteeley
Copy link
Contributor Author

dsteeley commented Sep 1, 2025

@cgwalters thanks for handling this and the follow on PR.

@dsteeley dsteeley deleted the ocispec_update branch September 1, 2025 08:38
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