Skip to content

Commit

Permalink
chore(lighthouse): use v7.0.0-beta.0, emit warning on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanschneider committed Feb 13, 2025
1 parent c1536d8 commit 6d0eb59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artifacts/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ func DownloadArtifacts() (map[string]string, error) {
{
Name: "lighthouse",
Org: "sigp",
Version: "v5.2.1",
Version: "v7.0.0-beta.0",
Arch: func(goos, goarch string) string {
if goos == "linux" {
return "x86_64-unknown-linux-gnu"
} else if goos == "darwin" && goarch == "arm64" { // Apple M1
return "x86_64-apple-darwin-portable"
return "x86_64-apple-darwin"
} else if goos == "darwin" && goarch == "amd64" {
return "x86_64-apple-darwin"
}
Expand Down
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"os/signal"
"path/filepath"
"reflect"
"runtime"
"slices"
"sort"
"strings"
Expand Down Expand Up @@ -506,6 +507,14 @@ func setupServices(svcManager *serviceManager, out *output) error {
return "unknown"
}()

if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
cmd := exec.Command("file", lighthouseBin)
out, _ := cmd.Output()
if strings.Contains(string(out), "x86_64") {
fmt.Println("WARNING: ", lighthouseBin, "is an x86_64 binary, using a self-compiled verison with `--use-bin-path` is recommended.")
}
}

// start the beacon node
fmt.Println("Starting lighthouse version " + lightHouseVersion)
svcManager.
Expand Down

0 comments on commit 6d0eb59

Please sign in to comment.