mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Fix cases where we can't yet use go.mod
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user