I am getting error on Visual Studio Code:
Command 'gopls.tidy' failed: Error: err: exit status 1: stderr: go mod tidy: go.mod file indicates go 1.17, but maximum supported version is 1.16 .
I can't fix it with go mod tidy
and go mod init
. How can I solve this?
A simple command in the terminal helped me:
brew upgrade go
GoLang has been updated, I have restarted the project, and everything is working
If you are using IntelliJ or GoLand built-in terminal, change GOROOT
on this page:
then restart the IDE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With