Skip to content

Commit fabd31b

Browse files
committed
feat: add log
1 parent d2860e8 commit fabd31b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lang/golang/parser/pkg.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ func (p *GoParser) parseImports(fset *token.FileSet, file []byte, mod *Module, i
5858
} else {
5959
match, path := matchMod(importPath, mod.Dependencies)
6060
if match == "" {
61+
if !strings.HasPrefix(importPath, mod.Name) {
62+
fmt.Fprintf(os.Stderr, "package %s not found mod", importPath)
63+
}
6164
projectImports[importAlias] = importPath
6265
} else {
6366
thirdPartyImports[importAlias] = [2]string{path, importPath}

0 commit comments

Comments
 (0)