bazelbuild / rules_docker

Rules for building and handling Docker images with Bazel
Apache License 2.0
1.07k stars 694 forks source link

Add toolchain param to the affected actions #2271

Open kotlaja opened 1 year ago

kotlaja commented 1 year ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

Exec platform selection is on a rule level. Which means that a rule can have one default execution platform, unless specified differently via exec_groups.

Issue Number: N/A

What is the new behavior?

Exec platform selection is on a toolchain_type level. Which means that each action on a rule can have a different execution platform.

Does this PR introduce a breaking change?

Other information

kotlaja commented 1 year ago

Oh, I see that you're using Bazel 4.0. Is there a possibility to update it to Bazel 6.0? toolchain param is available from 6.0. onwards.