github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/pkg/ddevapp/os_warnings_darwin.go (about) 1 package ddevapp 2 3 import ( 4 "github.com/ddev/ddev/pkg/util" 5 "syscall" 6 ) 7 8 // failOnRosetta checks to see if we're running under Rosetta and fails if we are. 9 func failOnRosetta() { 10 r, err := syscall.Sysctl("sysctl.proc_translated") 11 if err == nil { 12 // from https://www.yellowduck.be/posts/detecting-apple-silicon-via-go 13 if r == "\x01\x00\x00" { 14 util.Failed("You seem to be running under Rosetta, please install the ARM64 version of DDEV. If you're using homebrew, you need to reinstall it properly, see https://brew.sh") 15 } 16 } 17 }