Skip to content

Commit 964ca33

Browse files
committed
Fix cases where we can't yet use go.mod
1 parent 7c9e28d commit 964ca33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func findGoModFiles(emitDiagnostics bool) (baseDir string, goModFound bool) {
285285
diagnostics.EmitGoFilesOutsideGoModules(goModPaths)
286286
}
287287
baseDir = "."
288-
goModFound = true
288+
goModFound = false
289289
return
290290
}
291291
if len(goModPaths) > 1 {
@@ -298,7 +298,7 @@ func findGoModFiles(emitDiagnostics bool) (baseDir string, goModFound bool) {
298298
}
299299
}
300300
baseDir = "."
301-
goModFound = true
301+
goModFound = false
302302
return
303303
}
304304
if emitDiagnostics {

0 commit comments

Comments
 (0)