Skip to content

Commit b8cfff6

Browse files
committed
Go: Use Parse instead of ParseLax, since we need toolchain directives
1 parent f33d7ee commit b8cfff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/extractor/project/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func LoadGoModules(emitDiagnostics bool, goModFilePaths []string) []*GoModule {
203203
continue
204204
}
205205

206-
modFile, err := modfile.ParseLax(goModFilePath, modFileSrc, nil)
206+
modFile, err := modfile.Parse(goModFilePath, modFileSrc, nil)
207207

208208
if err != nil {
209209
log.Printf("Unable to parse %s: %s.\n", goModFilePath, err.Error())

0 commit comments

Comments
 (0)