tweag / rules_sh

Shell rules for Bazel
Apache License 2.0
42 stars 3 forks source link

Handle CPU value darwin_arm64 #20

Closed avdv closed 2 years ago

avdv commented 2 years ago

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 behavior rules_sh should support M1 MacOS.

Environment

Additional context Blocks https://github.com/tweag/rules_haskell/issues/1737