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
Depend on oci-spec #70
Conversation
Ah, oci-spec-rs is depending on https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1540-2021-07-29 from Rust 1.54. Hmm. |
76b0112
to
d12d8a4
Compare
OK rebased 🏄 and also updated to the new crate version (where the builder pattern is required). This still only touches the writing paths mostly. So there's more we can do to dedup code...we can get rid of our custom |
Since https://github.com/containers/oci-spec-rs now exists, let's use it!
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.
Looks sane to me!
lib/src/container/oci.rs
Outdated
.build() | ||
.unwrap(); | ||
let history = oci_image::HistoryBuilder::default() | ||
.created_by(concat!("created by ", env!("CARGO_PKG_VERSION"))) |
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.
Not new, though did you mean
.created_by(concat!("created by ", env!("CARGO_PKG_VERSION"))) | |
.created_by(concat!("created by ", env!("CARGO_PKG_NAME"), " v", env!("CARGO_PKG_VERSION"))) |
here?
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.
Yep, thanks!
Spotted in review.
Since https://github.com/containers/oci-spec-rs now
exists, let's use it!