mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Go: Use Parse instead of ParseLax, since we need toolchain directives
This commit is contained in:
@@ -203,7 +203,7 @@ func LoadGoModules(emitDiagnostics bool, goModFilePaths []string) []*GoModule {
|
||||
continue
|
||||
}
|
||||
|
||||
modFile, err := modfile.ParseLax(goModFilePath, modFileSrc, nil)
|
||||
modFile, err := modfile.Parse(goModFilePath, modFileSrc, nil)
|
||||
|
||||
if err != nil {
|
||||
log.Printf("Unable to parse %s: %s.\n", goModFilePath, err.Error())
|
||||
|
||||
Reference in New Issue
Block a user