Describe the bug
The local posix toolchain on an M1 Darwin machine selects linux as a fallback for the platform os in sh/posix.bzl since it does not handle darwin_arm64.
To Reproduce
Use on M1 MacOS.
INFO: ToolchainResolution: Type //sh/posix:toolchain_type: execution platform @local_config_platform//:host: Rejected toolchain @local_posix_config//:local_posix; mismatching values: x86_64, linux
Expected behaviorrules_sh should support M1 MacOS.
Describe the bug The local posix toolchain on an M1 Darwin machine selects
linux
as a fallback for the platform os insh/posix.bzl
since it does not handledarwin_arm64
.To Reproduce Use on M1 MacOS.
Expected behavior
rules_sh
should support M1 MacOS.Environment
Additional context Blocks https://github.com/tweag/rules_haskell/issues/1737