Skip to content

It is not possible to set Starlark defined command line flags that come from a different repository #9065

@aiuto

Description

@aiuto

This is best shown with a reproducible example.

From within the Bazel source code, this works.
build --//tools/build_defs/pkg:incompatible_no_build_defs_pkg

From a different repository (for example, one where we want to run CI with all incompatible flags set), //tools/build_defs does not exist, so we have to refer to it via the repository name bazel exports:
build --@bazel_tools//tools/build_defs/pkg:incompatible_no_build_defs_pkg

Alas, that does not parse, either in bazel sources or in other repositories.

The severity of the issue is that owners of rule sets are unable to make an incompatible flag change that their downstream users can test.

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)team-Configurabilityplatforms, toolchains, cquery, select(), config transitions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions