Page MenuHomePhabricator

mwcli: build darwin/arm64 binary
Closed, ResolvedPublic

Description

The darwin/amd64 binary won't work with new macs. In order to build the darwin/arm64 binary, we need to use golang1.16 or greater. To build the binary we need to do as follows:

  • Create a golang:1.16 docker image
  • Update .gitlabci to use the new docker image
  • Add 'darwin/arm64' to the list of targets in the makefile

Event Timeline

The darwin/amd64 binary won't work with new macs.

FWIW, https://gitlab.wikimedia.org/api/v4/projects/16/packages/generic/mwcli/v0.2.1/mw_v0.2.1_darwin_amd64 seems to work ok on an arm64 Mac, although it's using emulation so a native arm64 binary would be preferable.

There will be a build of this in the next release