Repository navigation
fix: don't pass empty files with app_binary_id; keep spaces in metadata and env values - #17
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.