cmd/go: show files in import cycle errors #68407
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Proposal Details
Hi All,
The proposal is to add more details, line numbers, for
import cycle not allowed
error.Currently the stack of cyclic import error is the following:
In a repo with large number of files under packages, it could take a little bit time to find which file in the packages cause the import cycle.
The proposal change:
The proposal here is to add line numbers after each package name in the stack info, so that developers could be easier to find which file and line import which package causes the cyclic import error, and make troubleshooting more efficient.
Happy to hear any comments!
Please feel free to add comments!
The text was updated successfully, but these errors were encountered: