OS: Windows 11 WSL2; IDE: Goland Latest
I am trying to open my IDE Goland, but I get this error when the IDE tries to index my project.
warning: GOPATH set to GOROOT (/usr/local/go) has no effect
go: mkdir /usr/local/go/pkg/mod: permission denied
go: github.com/MyCompany/[email protected]: mkdir /usr/local/go/pkg/mod: permission denied
though, I already set my go like this
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin
is that anything I miss for my WSL for Go Path?