Skip to content

Commit f48b1e5

Browse files
committed
Go: Check for relative paths warning even if go mod tidy is successful
1 parent aa5e14f commit f48b1e5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

go/extractor/project/project.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,13 @@ func initGoModForLegacyProject(path string) {
126126

127127
if err != nil {
128128
log.Printf("Failed to determine module requirements for this project.")
129+
}
129130

130-
if strings.Contains(string(out), "is relative, but relative import paths are not supported in module mode") {
131-
diagnostics.EmitRelativeImportPaths()
132-
}
131+
if strings.Contains(string(out), "is relative, but relative import paths are not supported in module mode") {
132+
diagnostics.EmitRelativeImportPaths()
133133
}
134134
}
135+
}
135136

136137
// Find all go.work files in the working directory and its subdirectories
137138
func findGoWorkFiles() []string {

0 commit comments

Comments
 (0)