Home > Article > Backend Development > Why Does My `go version` Command Show an Old Version After Upgrading to Go 1.8?
Go Version Command Displaying Old Version After Upgrade to 1.8
The issue raised here involves an inconsistency between the installed Go version and the version reported by the go version command after upgrading to Go 1.8.
Despite successful installation of Go 1.8, the terminal persistently reports version 1.7.5. The provided .bashrc configuration appears to have no apparent errors.
Troubleshooting steps taken include:
Solution
The suggested solution involves updating Go via Homebrew. By running the commands:
brew update brew upgrade golang
it prompts Homebrew to obtain the latest version of the Go package and install it. This process effectively resolved the issue.
The above is the detailed content of Why Does My `go version` Command Show an Old Version After Upgrading to Go 1.8?. For more information, please follow other related articles on the PHP Chinese website!