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
void db execute --remote --file passes file contents through argv, causing large files to fail #863
Void 1.10.0 reads the entire SQL file and includes its contents in one JSON command argument passed to a child process. Large files exceed the operating system's argument-size limit.
To reproduce in a project configured for remote D1, create a large SQL file:
python3 - <<'PY'from pathlib import PathPath("large.sql").write_text( "/*" + "x" * (2 * 1024 * 1024) + "*/\nSELECT 1 AS value;\n")PY
Then run:
pnpm exec void db execute --remote --file large.sql
Expected: File execution uses a transport that avoids command-line argument limits.
Actual: The child process cannot start because the SQL contents exceed the argument-size limit, producing spawnSync … E2BIG.
The installed code follows this path:
runExecute() reads the entire file.
executeCloudflareD1Sql() puts the SQL into a d1.execute operation.
encodeCloudflareOperation() serializes the operation into one command argument.
createCloudflareProcessRunner() passes it to spawnSync().
Verification: Tested the installed 1.10.0 process runner with its child replaced by a harmless local Node process. A small payload succeeded; a 2 MB payload failed with E2BIG. No remote database operation was run.
Could file execution use a file-import transport instead of passing the SQL contents through command arguments?
Activity
fix: pre-release audit findings since v1.10.0 (#874)