You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
zipapp compression input does not allow valid values #3646
Typically 0 to 9, with higher numbers being to compress more.
""",
default="",
),
. Bazel requires this value to be a string, so you have to specify it with quotes like "9".
🔬 Minimal Reproduction
Create any py_zipapp_binary and try to specify compression
🔥 Exception or Error
This makes the call unhappy and you get an error like this.
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
usage: zipper_.py [-h] [--compression COMPRESSION]
[--workspace-name WORKSPACE_NAME]
[--legacy-external-runfiles {0,1}]
[--runfiles-dir RUNFILES_DIR]
manifest output
zipper_.py: error: argument --compression: invalid int value: '%s'
🌍 Your Environment
Operating System:
Linux
Output of bazel version:
8.4.2
Rules_python version:
1.9.0
Anything else relevant?
It looks like a simple format = is missing in the line that is supposed to support compression setting.
Activity
fix: Fix zipapp compression support for new `py_zipapp_binary` target (…