"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Why Does `go version` Still Show the Old Version After Go 1.8 Update?

Why Does `go version` Still Show the Old Version After Go 1.8 Update?

Published on 2024-12-22
Browse:969

Why Does `go version` Still Show the Old Version After Go 1.8 Update?

Troubleshooting Go Version Discrepancy

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.

Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3