Skip to content
Snippets Groups Projects
Commit 618dd783 authored by Googler's avatar Googler Committed by Copybara-Service
Browse files

Change some configuration-independent deps from exec config to "no config".

Specifically:

 - deps on `package_metadata` and `applicable_licenses` attributes (common to all rules). These deps are for license metadata rules consumed by https://github.com/bazelbuild/rules_license. They don't create build actions and don't need to be configured.
 - deps on `compatible_with` and `restricted_to` attributes (also common to all rules). These are part of a deprecated constraints resolution framework, also don't create build actions, also don't need to be configured.

Both of these used the exec config as a placeholder for "don't duplicate these unnecessarily over multiple target configs". [NoConfigTransition](https://github.com/bazelbuild/bazel/blob/4d1dea0ddc0f7e61f8a618edf8fe689b21766bbc/src/main/java/com/google/devtools/build/lib/analysis/config/transitions/NoConfigTransition.java#L43) handles this more directly.

Motivation: aside from code cleanup, unblocks katre@'s work on exec platform resolution improvements. When these rules are in the exec configuration they can trigger "no matching exec platform" errors. Which is pointless for them.
PiperOrigin-RevId: 663743120
Change-Id: Ibcb482a40c3d59ee176a0374ed0304b2d29a55d4
parent 38f6d9d1
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment