Skip to content

ci: fix flag passing#3108

Merged
copybara-service[bot] merged 1 commit into
google:mainfrom
j2kun:main-use-remote-build-2
Jun 23, 2026
Merged

ci: fix flag passing#3108
copybara-service[bot] merged 1 commit into
google:mainfrom
j2kun:main-use-remote-build-2

Conversation

@j2kun

@j2kun j2kun commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Previous error was:

Run bazel build -c opt "$BAZEL_CONFIG_FLAG" \
  bazel build -c opt "$BAZEL_CONFIG_FLAG" \
    --remote_header=x-buildbuddy-api-key="$BUILDBUDDY_API_KEY" \
    //...
  shell: /usr/bin/bash -e {0}
  env:
    BUILDBUDDY_API_KEY: ***
    BAZEL_CONFIG_FLAG: --config=ci --config=remote
2026/06/23 18:21:30 Downloading https://releases.bazel.build/8.4.0/release/bazel-8.4.0-linux-x86_64...
Starting local Bazel server (8.4.0) and connecting to it...
ERROR: Config value 'ci --config=remote' is not defined in any .rc file
INFO: Invocation ID: af845015-d465-48d7-b824-bfd96830719f
INFO: Streaming build results to: https://heir.buildbuddy.io/invocation/af845015-d465-48d7-b824-bfd96830719f
Error: Process completed with exit code 2.

So the quoting of the env var was making bazel treat ci --config=remote as a single config name. Use a workaround to still quote but also allow multiple args.

@j2kun j2kun requested a review from asraa June 23, 2026 19:09
@j2kun j2kun added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label Jun 23, 2026
@copybara-service copybara-service Bot merged commit ade62b4 into google:main Jun 23, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant