Skip to content

Commit 0f23840

Browse files
committed
chore(deps): revert ocidir to 0.4.0, fix deprecations in ostree-ext
Signed-off-by: Robert Sturla <robertsturla@outlook.com>
1 parent 15d5a59 commit 0f23840

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ostree-ext/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ indicatif = { workspace = true }
3434
libc = { workspace = true }
3535
libsystemd = "0.7.2"
3636
openssl = { workspace = true }
37-
ocidir = "0.5.0"
37+
ocidir = "0.4.0"
3838
pin-project = "1.1"
3939
regex = "1.11.1"
4040
rustix = { workspace = true, features = ["fs", "process"] }

crates/ostree-ext/src/fixture.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,13 @@ fn ensure_parent_dirs(
340340
.map_err(Into::into)
341341
}
342342

343-
fn relative_path_components(p: &Utf8Path) -> impl Iterator<Item = Utf8Component> {
343+
fn relative_path_components(p: &Utf8Path) -> impl Iterator<Item = Utf8Component<'_>> {
344344
p.components()
345345
.filter(|p| matches!(p, Utf8Component::Normal(_)))
346346
}
347347

348348
/// Walk over the whole filesystem, and generate mappings from content object checksums
349-
/// to the package that owns them.
349+
/// to the package that owns them.
350350
///
351351
/// In the future, we could compute this much more efficiently by walking that
352352
/// instead. But this design is currently oriented towards accepting a single ostree

crates/ostree-ext/src/integrationtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub(crate) async fn create_fixture() -> Result<()> {
156156
let fixture = crate::fixture::Fixture::new_v1()?;
157157
let imgref = fixture.export_container().await?.0;
158158
println!("Wrote: {:?}", imgref);
159-
let path = fixture.into_tempdir().into_path();
159+
let path = fixture.into_tempdir().keep();
160160
println!("Wrote: {:?}", path);
161161
Ok(())
162162
}

0 commit comments

Comments
 (0)