Known Issues

gopls Linting Issue in Testing Files on Package Declaration Line

You may see the following error from gopls in the *_test.go files.

This file is within module “.”, which is not included in your workspace. To fix this problem, you can add a go.work file that uses this directory. See the documentation for more information on setting up your workspace: https://github.com/golang/tools/blob/master/gopls/doc/workspace.md.

This is due to a known issue within gopls (https://github.com/golang/go/issues/29202). You can work around this in VS Code by specifying the following in your settings.json.

"go.buildTags": "unit,integration,multicloud"