Skip to content

Commit

Permalink
Update the open source filegroup rule to disable toolchain resolution.
Browse files Browse the repository at this point in the history
The internal version of this rule has toolchain resolution disabled, and
this has been widely documented, so it is easiest to update the external
version of the rule to match.

Closes bazelbuild#13194.

PiperOrigin-RevId: 362067102
  • Loading branch information
katre authored and copybara-github committed Mar 10, 2021
1 parent 26c7e10 commit dce861d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.google.devtools.build.lib.analysis.RuleDefinition;
import com.google.devtools.build.lib.analysis.RuleDefinitionEnvironment;
import com.google.devtools.build.lib.packages.RuleClass;
import com.google.devtools.build.lib.packages.RuleClass.ToolchainResolutionMode;
import com.google.devtools.build.lib.rules.filegroup.Filegroup;
import com.google.devtools.build.lib.util.FileTypeSet;

Expand Down Expand Up @@ -75,6 +76,7 @@ public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env)
attr("path", STRING)
.undocumented(
"only used to expose FilegroupPathProvider, which is not currently used"))
.useToolchainResolution(ToolchainResolutionMode.DISABLED)
.build();
}

Expand Down

0 comments on commit dce861d

Please sign in to comment.