Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using syscall.Sysctl to get macOS version
Looks like `syscall.Sysctl` is not reliable when it comes to get macOS version on different arch (Intel vs silicon) because of [0]. This PR uses `sw_vers` cmd result which seems to be consistent on both platform. [0] golang/go#58722 fixes: #4086
- Loading branch information