Tag: gopls

go: cannot find main module, but found .git config to create a module there, run: go mod

go: cannot find main module, but found .git/config to create a module there, run: go mod This problem occurred in a monorepo opened in VSCode. The repo has many services placed in isolated directories with respective go.mod files. I realized from various sources that the problem is from two places: Move the mono repo under $GOPATH/src. The ~/.zshrc or ~/.bashrc…