-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have Starlark transition output call
FragmentOptions.getNormalized()
.
This makes Starlark transitions more consistent with native transitions. **Motivation**: fix a small difference between the Starlark and native exec transition. While they produce the same outputs, lack of normalization means the Starlark verion's `--define`, `--features`, `--host_features` order can be different. This doesn't matter for most Bazel code. But it can break [BaselineOptionsFunction](https://github.com/bazelbuild/bazel/blob/c7d8d1e3f16ac6db37b134358b6cfdb5e3c8f6b0/src/main/java/com/google/devtools/build/lib/skyframe/config/BaselineOptionsFunction.java#L43). **Also**: update `ComparingTransition` to catch ordering differences and add some unit tests. PiperOrigin-RevId: 579185062 Change-Id: I13f19b7eb6c9067426a35ca403b4ba45949c04e3
- Loading branch information
1 parent
9469d5a
commit e9f0296
Showing
4 changed files
with
358 additions
and
38 deletions.
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
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
Oops, something went wrong.