Skip to content

Commit fe4ee54

Browse files
committed
Go: Add more logging for go.mod files to workspace discovery
1 parent 1d9a3db commit fe4ee54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

go/extractor/project/project.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@ func discoverWorkspaces(emitDiagnostics bool) []GoWorkspace {
315315
goModFiles := findGoModFiles(".")
316316

317317
// Return a separate workspace for each `go.mod` file that we found.
318+
if len(goModFiles) > 0 {
319+
log.Printf("Found %d go.mod files in: %s.\n", len(goModFiles), strings.Join(goModFiles, ", "))
320+
} else {
321+
log.Println("Found no go.mod files in the workspace.")
322+
}
318323
results := make([]GoWorkspace, len(goModFiles))
319324

320325
for i, goModFile := range goModFiles {

0 commit comments

Comments
 (0)