crc-org / vfkit

Apache License 2.0
109 stars 21 forks source link

Add macOS version checks to client API #132

Open cfergeau opened 2 months ago

cfergeau commented 2 months ago

crc has code to check the macOS version which is mainly used to check for supported vfkit features https://github.com/crc-org/crc/blob/ec6cbfb3d35f433a6285bda4b12badb45e97f915/pkg/os/darwin/release_info.go#L22-L44 podman has similar requirements since it requires uefi support which was introduced in macos 13

It would be useful to have some version check code in the client code which could be shared between the various vfkit users. Ideally this would also go with feature based checks, such as VFKIT_UEFI_MIN_VERSION