浏览文件
mac_host_unavailable_darwin.go
15 行 · 349 B历史下载| 1 | //go:build darwin && (!arm64 || !cgo || no_vz) |
| 2 | |
| 3 | package guestos |
| 4 | |
| 5 | import ( |
| 6 | "context" |
| 7 | "errors" |
| 8 | ) |
| 9 | |
| 10 | func probeMacHost(ctx context.Context) (MacRestore, error) { |
| 11 | if err := ctx.Err(); err != nil { |
| 12 | return MacRestore{}, err |
| 13 | } |
| 14 | return MacRestore{}, errors.New("macOS guests require Apple silicon and a Cage build with native Virtualization support") |
| 15 | } |

