Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 49 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ uuid = { version = "1.9", features = ["v4"] }
walkdir = "2"
# by default which pulls in an outdated failure version
which = { version = "6", default-features = false }
zip = { version = "0.6", default-features = false }
zip = { version = "2", default-features = false }
zstd = "0.13"

# dist-server only
Expand Down
4 changes: 2 additions & 2 deletions src/cache/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl CacheWrite {
{
// We're going to declare the compression method as "stored",
// but we're actually going to store zstd-compressed blobs.
let opts = FileOptions::default().compression_method(CompressionMethod::Stored);
let opts = FileOptions::<()>::default().compression_method(CompressionMethod::Stored);
let opts = if let Some(mode) = mode {
opts.unix_permissions(mode)
} else {
Expand Down Expand Up @@ -312,7 +312,7 @@ impl CacheWrite {

/// Finish writing data to the cache entry writer, and return the data.
pub fn finish(self) -> Result<Vec<u8>> {
let CacheWrite { mut zip } = self;
let CacheWrite { zip } = self;
let cur = zip.finish().context("Failed to finish cache entry zip")?;
Ok(cur.into_inner())
}
Expand Down