-
Notifications
You must be signed in to change notification settings - Fork 7
Updates for oci-spec 0.8.2 #44
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
Conversation
…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>
0f24168 to
0a06783
Compare
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) |
|
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" |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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
|
Followup in #45 |
|
@cgwalters thanks for handling this and the follow on PR. |
oci-spec 0.8.2 has made a breaking change to it's
configAPI changing thehistoryfield 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?