-
Is there any use case of running
For The use case I'm considering is @katre Do you have any insight? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I agree that the right approach would be for The intersection of
It'd be nice to clean this up, but I'm not sure anyone on the Bazel team has time to tackle it. This definitely feels like a situation where we could accept community patches, however. |
Beta Was this translation helpful? Give feedback.
-
Further ideas we got here today was to have |
Beta Was this translation helpful? Give feedback.
-
Just to say it out loud: This doesn't materially change the original question though: |
Beta Was this translation helpful? Give feedback.
-
We're going to try to clean this up, at least for |
Beta Was this translation helpful? Give feedback.
bazel run
is currently not working well with platforms.I agree that the right approach would be for
run
to ignore the target platform (or ensure it matches the host) and use--host_platform
, since it's implicitly running on the bazel host. We haven't ever prioritized doing anything special here because the default is that--platforms
defaults to--host_platform
, so it's mostly there. (But I'd be happy to review a PR!)The intersection of
bazel run
,--platforms
, and--run_under
is much more confusing and needs more thought though, but my first instinct is:--run_under
points to (@rules_oci//:push
in your example), and that's running on the host plat…