Skip to content

Commit d4e2f55

Browse files
committed
Fix panic: 15.2 is not in dotted-tri format
Fix issue 3203 Signed-off-by: Akihiro Suda <[email protected]>
1 parent 62a3c80 commit d4e2f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/limayaml/defaults.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ func HasHostCPU() bool {
11951195
case "darwin":
11961196
if hasSMEDarwin() {
11971197
macOSProductVersion, err := osutil.ProductVersion()
1198-
if err != nil || macOSProductVersion.Equal(*semver.New("15.2")) {
1198+
if err != nil || (macOSProductVersion.Major == 15 && macOSProductVersion.Minor == 2) {
11991199
// SME is available since Apple M4 running macOS 15.2, but it was broken on macOS 15.2.
12001200
// It has been fixed in 15.3.
12011201
//

0 commit comments

Comments
 (0)