forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update error message when toolchain in ctx.actions.{run,run_shell} is…
… not defined Some rules are using `ctx.attr.tool[DefaultInfo].files_to_run.executable` when setting executable inside ctx.actions.{run,run_shell}. This attribute could be non-executable inside the rule's definition. This creates ambiguity when checking if toolchain parameter should be added or not since "context.getExecutableRunfiles" returns null. In this cases we should add "toolchain = None" to ctx.actions.{run,run_shell}. I've added tests to cover these cases. PiperOrigin-RevId: 518252829 Change-Id: I8d7ffd9459c295a3e08344aebfdfc70895283361
- Loading branch information
1 parent
f48412f
commit f8a59d9
Showing
2 changed files
with
44 additions
and
6 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