Home > Article > Backend Development > Why Does `go version` Still Show the Old Version After Go 1.8 Update?
After updating to Go 1.8, users may encounter a discrepancy where the go version command still displays the old version. Despite successful installation, renewals of the terminal session, and rebooting the computer, the version number remains unchanged.
To address this issue, users are advised to examine their .bashrc file. The specific path configuration within this file could be the culprit, causing the terminal to display the incorrect version while other applications (such as IDEs) recognize the current version.
One solution that has been suggested is to update Go through Homebrew on a Mac system. By running the following commands, users can ensure they have the latest version of Go installed:
brew update brew upgrade golang
After completing these steps, users should recheck the version using go version. If the problem persists, further troubleshooting may involve investigating the path configuration in the .bashrc file to ensure it accurately points to the correct Go installation directory.
The above is the detailed content of Why Does `go version` Still Show the Old Version After Go 1.8 Update?. For more information, please follow other related articles on the PHP Chinese website!