Skip to content

Bail if attempting to bootstrap on macOS arm64

Ash McKenzie requested to merge ashmckenzie/detect-arm64-homebrew into main

What does this Merge Request do and why?

This MR ensures make bootstrap bails if attempting to installing the GDK on Apple Silicon outside of the Rosetta 2 mode, e.g.

$ make bootstrap
INFO: Performing common preflight checks..
ERROR: Native Apple Silicon (arm64) detected. Rosetta 2 is required. For more information, see https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/advanced.md#macos.
INFO: Native Apple Silicon support for macOS is coming with https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues/1159.

ERROR: Unsupported platform. The list of supported platforms are:
INFO:
INFO: - macOS
INFO: - Ubuntu Pop neon
INFO: - Debian PureOS
INFO: - Arch Manjaro
INFO: - Fedora RHEL
INFO:
INFO: If your platform is not listed above, you're welcome to create a Merge Request in the GDK project to add support.
INFO:
INFO: Please visit https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/advanced.md to bootstrap manually.
make: *** [bootstrap] Error 1

Merge Request checklist

  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Tests added for new functionality. If not, please raise Issue to follow-up.
  • Documentation added/updated, if needed.
  • gdk doctor test added, if needed.
  • Add the ~highlight label if this MR should be included in the CHANGELOG.md.
Edited by Ash McKenzie

Merge request reports