Fix cases where we can't yet use go.mod

This commit is contained in:
Owen Mansel-Chan
2023-06-29 07:29:36 +01:00
parent 7c9e28d291
commit 964ca33445

View File

@@ -285,7 +285,7 @@ func findGoModFiles(emitDiagnostics bool) (baseDir string, goModFound bool) {
diagnostics.EmitGoFilesOutsideGoModules(goModPaths)
}
baseDir = "."
goModFound = true
goModFound = false
return
}
if len(goModPaths) > 1 {
@@ -298,7 +298,7 @@ func findGoModFiles(emitDiagnostics bool) (baseDir string, goModFound bool) {
}
}
baseDir = "."
goModFound = true
goModFound = false
return
}
if emitDiagnostics {