Skip to content

fix: don't pass empty files with app_binary_id; keep spaces in metadata and env values - #17

Merged
finalerock44 merged 2 commits into
mainfrom
fix/app-binary-id-positional
Nov 17, 2026
Merged

finalerock44 merged 2 commits into
mainfrom
fix/app-binary-id-positional

Conversation

@finalerock44

Copy link
Copy Markdown
Contributor

No description provided.

step.sh always passed "$app_file" "$workspace" as the CLI's positionals.
With app_binary_id set and app_file empty, the CLI got "" and then the
workspace. With --app-binary-id it reads the flows from the first
positional and rejects a second, so the run failed with "You cannot
provide both an appBinaryId and a binary file": reusing a binary through
app_binary_id could never work.

Build the positionals in an array and add the app file only when it's
set, and log the same positionals in the "Running command" line. An
app_url run now passes the workspace alone too, which the CLI reads as
the flows when the app comes from a flag.
The -e and -m pairs were built into strings and expanded unquoted, so a
value with a space, like USER_NAME=Jane Doe, split into several
arguments, and the stray word reached the CLI as a positional. Build
them as arrays instead and expand them quoted. Blank lines are still
skipped, a line's leading and trailing whitespace is still dropped, and
the logged command shows each pair quoted.
@finalerock44 finalerock44 self-assigned this Nov 17, 2026
@finalerock44
finalerock44 merged commit 049d2ee into main Nov 17, 2026
5 checks passed
@finalerock44
finalerock44 deleted the fix/app-binary-id-positional branch November 17, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant