Skip to content

x/build/internal/installer/darwinpkg: make the darwin/amd64 installer warn the user or fail when running on arm64ย #59010

Closed
@cespare

Description

@cespare

The download website makes it easy for all macOS users, even the ones running on Apple Silicon, to download the amd64 package. This is #52487.

As described in #52487 (comment), this mostly works, and users can go on quite a while not realizing that they're running the Go toolchain under emulation (and producing amd64 binaries which are also running under emulation). The problems that eventually arise can be very subtle.

Besides fixing the website download links, we should consider making the amd64 installer refuse to run on arm64 chips or at least warn the user that they are not installing the correct package for their architecture.

Metadata

Metadata

Assignees

Labels

Buildersx/build issues (builders, bots, dashboards)FeatureRequestIssues asking for a new feature that does not need a proposal.FixPendingIssues that have a fix which has not yet been reviewed or submitted.OS-Darwin

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions