JanDeDobbeleer / homebrew-oh-my-posh

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

Installation failure with brew #2

Closed zheolong closed 3 years ago

zheolong commented 3 years ago

Installation failure with brew

brew install oh-my-posh

go version

go version go1.15.6 darwin/amd64

error message

Updating Homebrew...
==> Installing oh-my-posh from jandedobbeleer/oh-my-posh
==> Downloading https://github.com/JanDeDobbeleer/oh-my-posh/archive/v3.160.1.tar.gz
Already downloaded: /Users/11127679/Library/Caches/Homebrew/downloads/4f65ecafb19d97941a06509abce3856df98c906e0620a76643cebe400ba19d1a--oh-my-posh-3.160.1.tar.gz
==> go build -o=oh-my-posh -ldflags="-X 'main.Version=3.160.1'"
Last 15 lines from /Users/11127679/Library/Logs/Homebrew/oh-my-posh/01.go:
2021-06-02 11:12:50 +0800

go build -o=oh-my-posh -ldflags="-X 'main.Version=3.160.1'"

image.go:26:2: package embed is not in GOROOT (/usr/local/Cellar/go/1.15.6/libexec/src/embed)

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

more details

2021-06-02 11:16:03 +0800

go build -o=oh-my-posh -ldflags="-X 'main.Version=3.160.1'"

image.go:26:2: package embed is not in GOROOT (/usr/local/Cellar/go/1.15.6/libexec/src/embed)

HOMEBREW_VERSION: 2.7.5
ORIGIN: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
HEAD: bca4804a9e48de5319383d3eddadaa7f054c77da
Last commit: 5 months ago
Core tap ORIGIN: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
Core tap HEAD: e66521a37387c7366a211517e820d41a4d15519d
Core tap last commit: 4 months ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 12.0 build 1200
Git: 2.24.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.7-x86_64
CLT: 12.0.32.29
Xcode: 12.3

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.15
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/go/bin:/usr/bin:/bin:/usr/sbin:/sbin
JanDeDobbeleer commented 3 years ago

@zheolong go needs to be version 1.16, that's also specified in the formula, did you pin it to 1.15?

EDIT: I now see it's not mentioned specifically. Can you upgrade go and try again? I'll see if we can specify it to avoid this going forward.

zheolong commented 3 years ago

@JanDeDobbeleer ok, I will try go 1.16