x/tools/go/packages: report ImportStack for import cycles #35964
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
When
go list
detects an import cycle, it reports the following error message:go/packages does not propagate the
ImportStack
, so it's not possible to determine the position in the file that the offending import corresponds to. Ideally, go/packages would propagate the ImportStack in the error, which would allowgopls
to extract a position for this error message. Even more ideally,go list
should report a position. 😄/cc @ridersofrohan @matloob @jayconrod
The text was updated successfully, but these errors were encountered: