bazelisk icon indicating copy to clipboard operation
bazelisk copied to clipboard

Bazelisk pulls incorrect Bazel on Windows ARM64

Open jxy-s opened this issue 1 year ago • 2 comments

The x64 version of bazelisk is compatible with a Windows ARM64 machine, it will run under x64 emulation on Windows. However it ends up pulling the x64 version of Bazel which causes unintended downstream behavior.

  • toolchains are not resolved as expected
  • the host OS is not reflected correctly causing the default compilation to produce an x64 binary instead of an ARM64 one

Bazelisk should pull the ARM64 version of when running on Windows ARM64 instead of the x64 version.

See: https://github.com/bazelbuild/bazel/issues/22164#issuecomment-2081383179

jxy-s avatar Apr 28 '24 08:04 jxy-s

This is probably because we don't have windows arm64 binary for bazelisk itself. @fweikert Do you know how hard it would be to add? We cross-compile all binaries with the go toolchain anyway, right?

meteorcloudy avatar May 28 '24 15:05 meteorcloudy

Maybe it's as simple as adding another target for windows arm64 here? https://github.com/bazelbuild/bazelisk/blob/47f60477721681a117cbf905784ee5220100e68b/BUILD#L145-L153

meteorcloudy avatar May 28 '24 15:05 meteorcloudy

@meteorcloudy my understanding is the same. I will try to submit a PR for this.

albertocavalcante avatar Aug 04 '24 17:08 albertocavalcante