bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
22.98k stars 4.03k forks source link

Starlark flags are omitted from BEP "explicit command line" #23514

Open tpudlik opened 1 week ago

tpudlik commented 1 week ago

Description of the bug:

Starlark flags (like label_flag) are omitted from the explicitCmdLine provided via BEP, even when they are in fact explicitly provided by the user on the command line.

This is inconvenient because the user should be able to copy-paste the explicit command line to reproduce the build, but that obviously requires setting the Starlark flags, too!

See https://github.com/buildbuddy-io/buildbuddy/issues/7361 for more context.

Which category does this issue belong to?

Configurability, Remote Execution

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

No response

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

8.0.0-pre.20240618.2

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

meisterT commented 1 week ago

cc @michaeledgar