Skip to content

Commit

Permalink
Use force_zip64=True when directly creating .conda files (#249)
Browse files Browse the repository at this point in the history
* use force_zip64=True when directly creating .conda files

* add news
  • Loading branch information
dholth authored Jun 6, 2024
1 parent 0504d5d commit 417ae54
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions news/248-use-zip64
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### Enhancements

* <news item>

### Bug fixes

* Use force_zip64=True when directly creating .conda files. Allows >2GB
(compressed) size. (#248)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>
2 changes: 1 addition & 1 deletion src/conda_package_handling/conda_fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def tell(self):
sizer.add(file, filter=utils.anonymize_tarinfo)
size = sizer.fileobj.size # type: ignore

with conda_file.open(component, "w") as component_file:
with conda_file.open(component, "w", force_zip64=True) as component_file:
# only one stream_writer() per compressor() must be in use at a time
component_stream = compress.stream_writer(
component_file, size=size, closefd=False
Expand Down

0 comments on commit 417ae54

Please sign in to comment.