late-keyboard-89314
07/17/2023, 9:58 PMgolangci_lint
? When I run it against a pretty basic setup I get an error saying:
15:52:31.72 [ERROR] Completed: Lint with golangci-lint - golangci-lint failed (exit code 7).
level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies"
My layout is a standard Go project layout, it looks like the following:
.
├── conf
├── dist
└── src
├── docker
│ └── projA
├── go
│ ├── cmd
│ │ ├── binA
│ │ └── binB
│ └── pkg
│ └── projA
│ └── testfiles
└── python
└── projC
It looks like this is maybe related to Go workspaces (https://github.com/golangci/golangci-lint/issues/2654), but I’m not using them (single go.mod in src/go). Anyone else run into this?broad-processor-92400
07/17/2023, 10:53 PMmain
branch, not any releases, yet). Does that look like it might be resolving your issue?fast-nail-55400
07/18/2023, 1:02 PM