Skip to content

Commit ca50c46

Browse files
committed
chore: add log
1 parent ff6e038 commit ca50c46

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lang/golang/parser/pkg.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ func (p *GoParser) loadPackages(mod *Module, dir string, pkgPath PkgPath) (err e
186186
Fset: fset,
187187
Dir: dir,
188188
Env: append(os.Environ(), "GOSUMDB=off"),
189+
Logf: func(f string, args ...interface{}) {
190+
fmt.Fprintf(os.Stderr, f+"\n", args...)
191+
},
189192
}
190193

191194
if p.opts.NeedTest {

0 commit comments

Comments
 (0)