mirror of
https://github.com/usestrix/strix.git
synced 2026-10-12 03:47:56 +00:00
Update strix/interface/main.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
53f4e2d3a9
commit
5cf923eb6d
1 changed files with 3 additions and 2 deletions
|
|
@ -516,7 +516,8 @@ Examples:
|
|||
assign_workspace_subdirs(args.targets_info)
|
||||
rewrite_localhost_targets(args.targets_info, HOST_GATEWAY_HOSTNAME)
|
||||
|
||||
max_copy_bytes = load_settings().runtime.max_local_copy_mb * 1024 * 1024
|
||||
max_local_copy_mb = load_settings().runtime.max_local_copy_mb
|
||||
max_copy_bytes = max_local_copy_mb * 1024 * 1024
|
||||
oversized = find_oversized_local_targets(args.targets_info, max_copy_bytes)
|
||||
if oversized:
|
||||
details = "; ".join(
|
||||
|
|
@ -524,7 +525,7 @@ Examples:
|
|||
)
|
||||
parser.error(
|
||||
f"Local target too large to stream into the sandbox: {details}. "
|
||||
f"The limit is {load_settings().runtime.max_local_copy_mb} MB "
|
||||
f"The limit is {max_local_copy_mb} MB "
|
||||
"(set STRIX_MAX_LOCAL_COPY_MB to change it). Re-run with "
|
||||
"--mount <path> to bind-mount the directory instead of copying it."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue