Migrate Automatic Exec Groups by adding a toolchain parameter to the affected actions

This is a step forward for the full migration of Automatic Exec Groups (AEGs). This change will be effective once AEGs are enabled.

In this CL I've added a toolchain_type to `toolchain` attribute of ctx.actions.{run, run_shell} since the Execution platform is selected on a toolchain type level, not on a rule level like before AEGs.

PiperOrigin-RevId: 560782417
This commit is contained in:
Nevena Kotlaja
2023-08-28 12:14:35 -07:00
committed by gVisor bot
parent 2c7778ecca
commit 2ba23f3ae4
+3
View File
@@ -91,6 +91,7 @@ def _nogo_stdlib_impl(ctx):
"-facts=%s" % facts_file.path,
"-root=.*?/src/",
] + [f.path for f in go_ctx.stdlib_srcs],
toolchain = None,
)
# Return the stdlib facts as output.
@@ -291,6 +292,7 @@ def _nogo_aspect_impl(target, ctx):
"-facts=%s" % facts_file.path,
"-package=%s" % importpath,
] + [src.path for src in srcs],
toolchain = None,
)
# Return the package facts as output.
@@ -363,6 +365,7 @@ def _nogo_test_impl(ctx):
["-config=%s" % f.path for f in config_srcs] +
["-output=%s" % findings.path] +
[f.path for f in raw_findings],
toolchain = None,
)
# Note that this calls the filter binary without any configuration, so