forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Incompatible Target Skipping for test args
Before the fix, the test in this patch would error out with the following message: ERROR: ...: in args attribute of sh_test rule //target_skipping:foo_test: label '//target_skipping:some_foo3_target' in $(location) expression expands to no files The problem was that the `RunfilesSupport` class for the `RunfilesProvider` instance was computing the arguments as the incompatible target was being constructed. That meant that the arguments get evaluated and it would try to resolve things like `$(location :incompatible_dep)`. That can't really succeed so bazel would throw an error. This patch makes it so arguments are ignored when constructing an incompatible target. Closes bazelbuild#13219. PiperOrigin-RevId: 363233765
- Loading branch information
1 parent
586de95
commit 807f2a1
Showing
3 changed files
with
38 additions
and
2 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