goland出错:GOROOT is not defined

问题:

升级go1.18.3版本之后,goland报错:GOROOT is not defined

解决方法:

修改 zversion.go(我的在目录C:\Program Files\Go\src\runtime\internal\sys)
添加:const TheVersion = `go1.18.3`