Skip to content

Commit ca2c432

Browse files
authored
Merge pull request #3204 from AkihiroSuda/fix-3203
Fix `panic: 15.2 is not in dotted-tri format`
2 parents 62a3c80 + d4e2f55 commit ca2c432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/limayaml/defaults.go

+1-1
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)