Skip to content

Commit 45fc36a

Browse files
tenntennclaude
authored andcommitted
fix: use unitchecker instead of singlechecker for go vet compatibility
singlechecker does not work with go vet -vettool flag. unitchecker is required for proper integration with go vet. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 105cbe2 commit 45fc36a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ergocheck/cmd/ergocheck/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package main
22

33
import (
44
"github.com/newmo-oss/ergo/ergocheck"
5-
"golang.org/x/tools/go/analysis/singlechecker"
5+
"golang.org/x/tools/go/analysis/unitchecker"
66
)
77

88
func main() {
9-
singlechecker.Main(ergocheck.Analyzer)
9+
unitchecker.Main(ergocheck.Analyzer)
1010
}

0 commit comments

Comments
 (0)