Use the launcher maker toolchain for Windows launchers (#79)

`sh_binary` and `sh_test` now get the launcher maker from the
`@bazel_tools//tools/launcher:launcher_maker_toolchain_type` toolchain,
as rules_java already does, instead of the deprecated
`@bazel_tools//tools/launcher:launcher_maker` target, which
bazelbuild/bazel#32632 removes. The `launcher_maker` attribute of
`sh_toolchain` is now a no-op.

The rules also opt into automatic exec groups, as the rules_java rules
do. The execution platform of the launcher action is then selected for
the launcher maker toolchain alone, independently of the shell
toolchain, and `exec_properties` can target it with the
`@@bazel_tools//tools/launcher:launcher_maker_toolchain_type.` prefix.

The toolchain type exists in Bazel 8.3.0 and later, which covers all
versions that use the Starlark rules by default.

Work towards https://github.com/bazelbuild/bazel/issues/19209
3 files changed
tree: 121b5165293e0482dd3b23917e998700e9055749
  1. .bazelci/
  2. .bcr/
  3. .github/
  4. docs/
  5. shell/
  6. tests/
  7. .bazelignore
  8. .bazelrc
  9. .bazelversion
  10. .gitignore
  11. CONTRIBUTING.md
  12. LICENSE
  13. MODULE.bazel
  14. README.md
  15. WORKSPACE
README.md

rules_shell

This repository contains the Bazel ruleset for shell scripts.