I am getting "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 ." error on Visual Studio Code. I can't fix it with go mod tidy
and go mod init
. How can I solve this?
0
votes
I believe this is because you are running Go v1.16 locally, but your go.mod file requests that you have at least v1.17. So update your go version or change the go.mod file. But be aware that v1.17 code may not work for your v1.16 install, hence this error
- Dylan Reimerink