Update the open source filegroup rule to disable toolchain resolution.
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
@@ -22,6 +22,7 @@ import com.google.devtools.build.lib.analysis.BaseRuleClasses;
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;
@@ -75,6 +76,7 @@ public final class BazelFilegroupRule implements RuleDefinition {
attr("path", STRING)
.undocumented(
"only used to expose FilegroupPathProvider, which is not currently used"))
+ .useToolchainResolution(ToolchainResolutionMode.DISABLED)
.build();
}
