-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't crash when Starlark rules declare attributes named "licenses".
The specific use case that triggers this is writing a rule with a non-LICENSE-typed attribute named "licenses", then creating a BUILD instance that doesn't explicitly set its value. See the test for an example. Fixes #7194. Also fixes #6420 (comment), which blocks the --incompatible_no_attr_license migration. RELNOTES: Starlark rules can safely declare attributes named "licenses" PiperOrigin-RevId: 235919628
- Loading branch information
1 parent
1a90fe6
commit 82281ad
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters