+- `godoc-lint` / `golangci-lint`: honour `go.work` when present. Previously both hooks discovered `go.mod` files via `find` and lint each one, which caused `[linters_context] typechecking error: pattern ./...: directory prefix . does not contain modules listed in go.work` whenever a repository had a `go.work` but some `go.mod` files sat outside the workspace (e.g. `test_apps/go/`). The hooks now parse the `use (...)` list from `go.work` and lint only the included modules. Falls back to the existing `find`-based discovery when no `go.work` exists.
0 commit comments