Skip to content

Remove 'cfg.= "exec"` from license()'s license_kinds attribute when users use a new enough Bazel #148

@gregestren

Description

@gregestren

katre@ is working on exec platform resolution improvements.

As part of that we want to switch license() rules from the exec configuration to a "no configuration". The only reason they use the exec configuration is so mullt-configured target builds don't fork license() rules for no reason. "No configuration" is a better expression of that but it's not available in Starlark.

https://bazel-review.googlesource.com/c/bazel/+/254333 will switch license() rules to use "no configuration" internally within Bazel. After that change the only remaining cleanup is removing the license_kinds exec transition.

But we can't remove that until https://bazel-review.googlesource.com/c/bazel/+/254333 is released in an acceptable Bazel version. (Bazel 8?).

Once that happens we should remove it. See the code comments in https://bazel-review.googlesource.com/c/bazel/+/254333 for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions