Skip to content

Commit cd826dc

Browse files
committed
adjust test invocation and enable deflate-flate2-zlib-rs feature
1 parent 141b47f commit cd826dc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gix-archive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ gix-path = { version = "^0.10.22", path = "../gix-path", optional = true }
3333
gix-date = { version = "^0.11.0", path = "../gix-date" }
3434

3535
flate2 = { version = "1.1.1", optional = true, default-features = false, features = ["zlib-rs"] }
36-
zip = { version = "6.0.0", optional = true, default-features = false, features = ["deflate-flate2"] }
36+
zip = { version = "6.0.0", optional = true, default-features = false, features = ["deflate-flate2-zlib-rs"] }
3737
jiff = { version = "0.2.15", default-features = false, features = ["std"] }
3838

3939
thiserror = "2.0.17"

gix-archive/src/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ fn tar_entry_type(mode: gix_object::tree::EntryMode) -> tar::EntryType {
247247
}
248248
}
249249

250-
#[cfg(any(feature = "tar", feature = "tar_gz"))]
250+
#[cfg(any(feature = "tar", feature = "tar_gz", feature = "zip"))]
251251
fn add_prefix<'a>(relative_path: &'a bstr::BStr, prefix: Option<&bstr::BString>) -> std::borrow::Cow<'a, bstr::BStr> {
252252
use std::borrow::Cow;
253253
match prefix {

justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ unit-tests:
149149
cargo nextest run -p gix-testtools --no-fail-fast
150150
cargo nextest run -p gix-testtools --features xz --no-fail-fast
151151
cargo nextest run -p gix-archive --no-default-features --no-fail-fast
152-
cargo nextest run -p gix-archive --features tar --no-fail-fast
153-
cargo nextest run -p gix-archive --features tar_gz --no-fail-fast
154-
cargo nextest run -p gix-archive --features zip --no-fail-fast
152+
cargo nextest run -p gix-archive --no-default-features --features tar --no-fail-fast
153+
cargo nextest run -p gix-archive --no-default-features --features tar_gz --no-fail-fast
154+
cargo nextest run -p gix-archive --no-default-features --features zip --no-fail-fast
155155
cargo nextest run -p gix-status-tests --features gix-features-parallel --no-fail-fast
156156
cargo nextest run -p gix-worktree-state-tests --features gix-features-parallel --no-fail-fast
157157
cargo nextest run -p gix-worktree-tests --features gix-features-parallel --no-fail-fast

0 commit comments

Comments
 (0)