roots / trellis

WordPress LEMP stack with PHP 8.2, Composer, WP-CLI and more
https://roots.io/trellis/
MIT License
2.51k stars 607 forks source link

Automate arm64 Vagrant box support for Apple Silicon #1431

Closed swalkinshaw closed 2 years ago

swalkinshaw commented 2 years ago

Adds built-in support to automate host architecture detection and setting of arm64 specific boxes for Apple Silicon.

Previously the vagrant_box config setting would have to be manually overwritten. Now Vagrant will detect the OS architecture of the host and append -arm64 (by convention) when three conditions apply:

  1. vagrant_box_auto_arch is enabled (default: true)
  2. vagrant_box does not already end up with -arm64
  3. the OS is running on Apple Silicon