Go get command fail

After i upgraded my go version from 1.8 to 1.9 i am getting this following error while i trying to get some 3rd dependencies to my project using go get -u command :


flag provided but not defined: -goversion
usage: compile [options] file.go…
-% debug non-static initializers
-+ compiling runtime
-B disable bounds checking
-D path
set relative path for local import
Why am i getting this error ?

Fix : I downloaded Go version from it’s web site instead of homebrew then it’s fixed.

Strange. I use Go via Homebrew and did not come across this issue. Maybe not Homebrew related. I wonder if

brew reinstall go

or maybe

brew uninstall go
brew cleanup
brew install go

would have fixed this issue.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.