Closed
Description
🐞 bug report
Affected Rule
The issue is caused by the rule: py_wheel
Is this a regression?
Not sure
Description
Hello, it appears that when one of the deps
for py_wheel
has too large of a file size, building the target fails with
raise RuntimeError("File size too large, try using force_zip64")
Docs for ZipFile.open say
When writing a file, if the file size is not known in advance but may exceed 2 GiB, pass
force_zip64=True
to ensure that the header format is capable of supporting large files. If the file size is known in advance, construct a ZipInfo object with file_size set, and use that as the name parameter.
Maybe it would make sense to use force_zip64=True
here?
🔬 Minimal Reproduction
(don't have one currently)
🔥 Exception or Error
...
File ".../external/rules_python+/tools/wheelmaker.runfiles/_main/../rules_python+/tools/wheelmaker.py", line 157, in add_file
with self.open(zinfo, "w") as fdst:
File "../external/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/lib/python3.11/zipfile.py", line 1201, in close
raise RuntimeError("File size too large, try using force_zip64")
🌍 Your Environment
Operating System:
Linux x86_64
Output of bazel version
:
8.1.1
Rules_python version:
1.3.0
Anything else relevant?
Metadata
Metadata
Assignees
Labels
No labels