Skip to content

fix: declare rustfmt aspect action toolchain#4128

Open
keegancsmith wants to merge 1 commit into
bazelbuild:mainfrom
keegancsmith:k/auto-exec-groups-rustfmt-aspect
Open

fix: declare rustfmt aspect action toolchain#4128
keegancsmith wants to merge 1 commit into
bazelbuild:mainfrom
keegancsmith:k/auto-exec-groups-rustfmt-aspect

Conversation

@keegancsmith

Copy link
Copy Markdown

The --incompatible_auto_exec_groups flag requires Starlark actions to declare whether their executable/tools come from an action toolchain. This is not a Bazel default today, but it is exposed through strict preset configurations and is intended to catch rules that rely on implicit action toolchain inference.

rustfmt_aspect runs rustfmt from rules_rust's rustfmt toolchain, but the formatting action does not declare that action toolchain. Declare the matching rustfmt toolchain so the action's toolchain behavior is explicit without changing its inputs or execution model.

The --incompatible_auto_exec_groups flag requires Starlark actions to
declare whether their executable/tools come from an action toolchain.
This is not a Bazel default today, but it is exposed through strict
preset configurations and is intended to catch rules that rely on
implicit action toolchain inference.

rustfmt_aspect runs rustfmt from rules_rust's rustfmt toolchain, but the
formatting action does not declare that action toolchain. Declare the
matching rustfmt toolchain so the action's toolchain behavior is
explicit without changing its inputs or execution model.

@UebelAndre UebelAndre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@UebelAndre UebelAndre added this pull request to the merge queue Jul 4, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 4, 2026
@UebelAndre UebelAndre added this pull request to the merge queue Jul 4, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 4, 2026
@keegancsmith

Copy link
Copy Markdown
Author

CI failures look unrelated since they seem like the same failures on main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants