Skip to content

Commit de1d1ad

Browse files
sitanojirfag
authored andcommitted
make use of LoadAllSyntax compatible with the latest x/tools version
1 parent 97ea1cb commit de1d1ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/lint/load.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ func stringifyLoadMode(mode packages.LoadMode) string {
168168
return "load types"
169169
case packages.LoadSyntax:
170170
return "load types and syntax"
171-
case packages.LoadAllSyntax:
171+
}
172+
// it may be an alias, and may be not
173+
if mode == packages.LoadAllSyntax {
172174
return "load deps types and syntax"
173175
}
174176
return "unknown"

0 commit comments

Comments
 (0)