Skip to content

Commit

Permalink
fix: zip large files compression (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Aug 30, 2024
1 parent 698075b commit e4a8b60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/rattler_package_streaming/src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ pub fn write_conda_package<W: Write + Seek>(

let options = zip::write::SimpleFileOptions::default()
.compression_method(zip::CompressionMethod::Stored)
.last_modified_time(last_modified_time);
.last_modified_time(last_modified_time)
.large_file(true);

// write the metadata as first file in the zip archive
let package_metadata = PackageMetadata::default();
Expand All @@ -321,6 +322,7 @@ pub fn write_conda_package<W: Write + Seek>(
let (info_paths, other_paths) = sort_paths(paths, base_path);

let archive_path = format!("pkg-{out_name}.tar.zst");

outer_archive.start_file(archive_path, options)?;
write_zst_archive(
&mut outer_archive,
Expand Down

0 comments on commit e4a8b60

Please sign in to comment.