Go: Use Parse instead of ParseLax, since we need toolchain directives

This commit is contained in:
Michael B. Gale
2024-04-25 14:10:26 +01:00
parent f33d7ee80d
commit b8cfff6d19

View File

@@ -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())