bazelisk icon indicating copy to clipboard operation
bazelisk copied to clipboard

Using a commit hash .bazelversion on Apple Silicon (arm64) pulls x86_64 bazel binary

Open djmarcin opened this issue 3 years ago • 1 comments

If you have rosetta2 enabled, this seems to work -- except that the host & target platforms for the build are then detected as x86_64. If you are trying to produce arm64 builds, this is pretty confusing 😂

This is the bazelisk output

2021/08/08 16:57:45 Using unreleased version at commit d4dd2038039ecbc63e2d3037855c31145b335ad4
2021/08/08 16:57:45 Downloading https://storage.googleapis.com/bazel-builds/artifacts/macos/d4dd2038039ecbc63e2d3037855c31145b335ad4/bazel...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...

I'm not sure if arm64 macos builds are available at the https://storage.googleapis.com location, but it seems to me that the URL is missing an x86_64 vs arm64 component to pull the right version.

djmarcin avatar Aug 09 '21 00:08 djmarcin

Oh no :D I can reproduce this, indeed. Thanks for filing the issue, I'll see how we can fix that (it probably requires some changes on our CI side, where we publish the binaries for each commit, too).

philwo avatar Aug 10 '21 09:08 philwo