Skip to content

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

@djmarcin

Description

@djmarcin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions