JanDeDobbeleer / homebrew-oh-my-posh

Homebrew formula for Oh my Posh
14 stars 9 forks source link

Seg faults from go compiler #18

Closed davorklju closed 10 months ago

davorklju commented 10 months ago

Following the linux instruction on wsl

$ brew install jandedobbeleer/oh-my-posh/oh-my-posh
Running `brew update --auto-update`...
==> Fetching jandedobbeleer/oh-my-posh/oh-my-posh
==> Downloading https://github.com/JanDeDobbeleer/oh-my-posh/archive/v18.2.2.tar.gz
Already downloaded: /home/davor/.cache/Homebrew/downloads/585541cb1cfda476a1dd5b7212c6afd82574bfdc8e91b8d5260dadf1f0b270bb--oh-my-posh-18.2.2.tar.gz
==> Installing oh-my-posh from jandedobbeleer/oh-my-posh
==> go build -o=oh-my-posh -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=18.2.2' -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Date=2023-08-04T06:33:10Z'"
Last 15 lines from /home/davor/.cache/Homebrew/Logs/oh-my-posh/01.build.Date=2023-08-04T06:33:10Z'":
2023-08-04 19:08:37 +0000

go build -o=oh-my-posh -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=18.2.2' -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Date=2023-08-04T06:33:10Z'"

Segmentation fault

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/jandedobbeleer/homebrew-oh-my-posh/issues

Seems like the entire compiler is busted

$ /home/linuxbrew/.linuxbrew/bin/go version
Segmentation fault

Running with HOMEBREW_GOPROXY=/usr/bin/go brew install oh-my-posh works, but it pushes the issue onto the oh-my-posh exe Go version go version go1.19.8 linux/amd64

$ oh-my-posh font install
Segmentation fault
JanDeDobbeleer commented 10 months ago

@davorklju that's a golang/platform issue, not oh-my-posh unfortunately. I can't help with that one. Reinstalling golang is the best option you got.

davorklju commented 10 months ago

@JanDeDobbeleer fair enough.

JanDeDobbeleer commented 10 months ago

@davorklju let me know how it goes, other wise you can always install/update by using the installation script instead.

davorklju commented 10 months ago

@JanDeDobbeleer manual install worked fine. Guessing that's using my local go rather than homebew.

JanDeDobbeleer commented 10 months ago

@davorklju no, that one installs an already compiled executable for you. So it's strange your local go got corrupted, but I did see that before.