github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/exec/cli_darwin.go (about) 1 package exec 2 3 import "errors" 4 5 func performOSChecks(_ string) error { 6 if disableMacOSChecks { 7 return nil 8 } 9 if !isRoot() { 10 return errors.New("on macOS you're required to run the agent with sudo") 11 } 12 return nil 13 }