Open cramertj opened 5 months ago
@katre @aranguyen
If there's a standard provider we can add it to the list to copy, but there's no way to programatically discover all providers of a dependency.
This was solved for env
by replacing the magic attribute with a provider. https://github.com/bazelbuild/bazel/pull/16430 set out to do this but stalled - happy to revive it when there is consensus on the design.
The args issue is specifically for --run_under=my_wrapped_py_binary
?
I think a simple $ bazel run :my_wrapped_py_binary
still works, doesn't it?
platform_data
returns aDefaultInfo
provider, discarding other providers from the original rule.It also does not forward the
args
of the wrapped rule, so e.g. apy_binary
with anargs = [ ... ]
parameter will not have its args provided when invoked through aplatform_data
rule.