Skip to content

Commit

Permalink
Fix panic: 15.2 is not in dotted-tri format
Browse files Browse the repository at this point in the history
Fix issue 3203

Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Feb 7, 2025
1 parent 62a3c80 commit d4e2f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/limayaml/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ func HasHostCPU() bool {
case "darwin":
if hasSMEDarwin() {
macOSProductVersion, err := osutil.ProductVersion()
if err != nil || macOSProductVersion.Equal(*semver.New("15.2")) {
if err != nil || (macOSProductVersion.Major == 15 && macOSProductVersion.Minor == 2) {
// SME is available since Apple M4 running macOS 15.2, but it was broken on macOS 15.2.
// It has been fixed in 15.3.
//
Expand Down

0 comments on commit d4e2f55

Please sign in to comment.