-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward @bazel_tools//tools/sh:toolchain_type
to rules_shell
#24748
Conversation
This is required for compatibility with modules that rely on the auto-registered `sh_toolchain` to obtain a shebang, e.g. `rules_js`. Also remove implementations and toolchain registrations in favor of forwarders.
FYI @comius |
@bazel-io fork 8.0.1 |
@bazel_tools//tools/sh:toolchain_type
to rules_shell
@bazel_tools//tools/sh:toolchain_type
to rules_shell
FYI @alexeagle as this may break |
Thank you! I don't think we saw that report yet but perhaps the problem is unreachable due to other Bazel 8 errors. |
This is required for compatibility with modules that rely on the auto-registered `sh_toolchain` to obtain a shebang, e.g. `rules_js`. Also remove implementations and toolchain registrations in favor of forwarders. Closes bazelbuild#24748. PiperOrigin-RevId: 709149200 Change-Id: I758cf403c24f6b5e6f00bbf5b4e0313a30773f78
…ll` (#24793) This is required for compatibility with modules that rely on the auto-registered `sh_toolchain` to obtain a shebang, e.g. `rules_js`. Also remove implementations and toolchain registrations in favor of forwarders. Closes #24748. PiperOrigin-RevId: 709149200 Change-Id: I758cf403c24f6b5e6f00bbf5b4e0313a30773f78 Commit 720e15e Co-authored-by: Fabian Meumertzheim <[email protected]>
The changes in this PR have been included in Bazel 8.0.1 RC1. Please test out the release candidate and report any issues as soon as possible. |
I am seeing |
def _sh_toolchain_impl(ctx): | ||
"""sh_toolchain rule implementation.""" | ||
return [platform_common.ToolchainInfo(path = ctx.attr.path)] | ||
load("@rules_shell//shell:sh_toolchain.bzl", _sh_toolchain = "sh_toolchain") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fmeum this seems to be wrong.
This is required for compatibility with modules that rely on the auto-registered
sh_toolchain
to obtain a shebang, e.g.rules_js
.Also remove implementations and toolchain registrations in favor of forwarders.