Skip to content

Commit

Permalink
Use oci_spec re-exported from containers_image_proxy
Browse files Browse the repository at this point in the history
This needs to stay in sync, because it's a public API dependency
of that project.  Motivated by a recent semver bump there.
  • Loading branch information
cgwalters committed May 1, 2023
1 parent 8cd93fb commit ccc8348
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rust-version = "1.63.0"

[dependencies]
anyhow = "1.0"
containers-image-proxy = "0.5.2"
containers-image-proxy = "0.5.3"
async-compression = { version = "0.3", features = ["gzip", "tokio"] }
bitflags = "1"
camino = "1.0.4"
Expand All @@ -31,7 +31,6 @@ indicatif = "0.17.0"
once_cell = "1.9"
libc = "0.2.92"
libsystemd = "0.5.0"
oci-spec = "0.5.4"
openssl = "0.10.33"
ostree = { features = ["v2022_5", "cap-std-apis"], version = "0.17.0" }
pin-project = "1.0"
Expand Down
1 change: 1 addition & 0 deletions lib/src/container/encapsulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::tar as ostree_tar;
use anyhow::{anyhow, Context, Result};
use cap_std::fs::Dir;
use cap_std_ext::cap_std;
use containers_image_proxy::oci_spec;
use flate2::Compression;
use fn_error_context::context;
use gio::glib;
Expand Down
3 changes: 2 additions & 1 deletion lib/src/container/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
//! for this is [planned but not implemented](https://github.com/ostreedev/ostree-rs-ext/issues/12).

use anyhow::anyhow;

use containers_image_proxy::oci_spec;
use ostree::glib;

use std::borrow::Cow;
use std::collections::HashMap;
use std::ops::Deref;
Expand Down
1 change: 1 addition & 0 deletions lib/src/container/ocidir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use camino::Utf8Path;
use cap_std::fs::Dir;
use cap_std_ext::cap_std;
use cap_std_ext::dirext::CapStdExtDirExt;
use containers_image_proxy::oci_spec;
use flate2::write::GzEncoder;
use fn_error_context::context;
use oci_image::MediaType;
Expand Down
1 change: 1 addition & 0 deletions lib/src/container/update_detachedmeta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use anyhow::{anyhow, Context, Result};
use camino::Utf8Path;
use cap_std::fs::Dir;
use cap_std_ext::cap_std;
use containers_image_proxy::oci_spec;
use std::io::{BufReader, BufWriter};

/// Given an OSTree container image reference, update the detached metadata (e.g. GPG signature)
Expand Down
1 change: 1 addition & 0 deletions lib/src/integrationtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use anyhow::Result;
use camino::Utf8Path;
use cap_std::fs::Dir;
use cap_std_ext::cap_std;
use containers_image_proxy::oci_spec;
use fn_error_context::context;
use gio::prelude::*;
use oci_spec::image as oci_image;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Re-export our dependencies. See https://gtk-rs.org/blog/2021/06/22/new-release.html
// "Dependencies are re-exported". Users will need e.g. `gio::File`, so this avoids
// them needing to update matching versions.
pub use oci_spec;
pub use containers_image_proxy::oci_spec;
pub use ostree;
pub use ostree::gio;
pub use ostree::gio::glib;
Expand Down
1 change: 1 addition & 0 deletions lib/tests/it/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use anyhow::{Context, Result};
use camino::Utf8Path;
use cap_std::fs::{Dir, DirBuilder};
use containers_image_proxy::oci_spec;
use once_cell::sync::Lazy;
use ostree::cap_std;
use ostree_ext::chunking::ObjectMetaSized;
Expand Down

0 comments on commit ccc8348

Please sign in to comment.