Skip to content

Make deploy script compatible with macOS#447

Open
r0x0r wants to merge 1 commit into
mainfrom
deploy-script-macos
Open

Make deploy script compatible with macOS#447
r0x0r wants to merge 1 commit into
mainfrom
deploy-script-macos

Conversation

@r0x0r
Copy link
Copy Markdown

@r0x0r r0x0r commented May 26, 2026

deploy.sh script fails on macOS with xargs: command line cannot be assembled, too long error. This pull request fixes the script, specifically in how arguments are passed to the xargs-spawned bash processes.

Copilot AI review requested due to automatic review settings May 26, 2026 08:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes dependencies/deploy.sh so CRD names are passed to the xargs-spawned bash processes as positional parameters (instead of being interpolated via xargs -I{}), aiming to avoid macOS xargs: command line cannot be assembled, too long failures during CRD establishment waits.

Changes:

  • Switch CRD handling from xargs -I{} substitution to bash -c ... _ <crd> with CRD="$1".
  • Add the dummy $0 argument (_) required for correct $1 positioning in bash -c.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dependencies/deploy.sh
Comment on lines 86 to +88
yq -r 'select(.kind == "CustomResourceDefinition") | .metadata.name' "$TMP_BUILD" \
| xargs -r -n1 -P8 -I{} bash -c '
CRD="{}"
| xargs -r -n1 -P8 bash -c '
CRD="$1"
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.

2 participants