cmd/go: print file name when showing an import cycle #66078
Labels
FeatureRequest
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
We've all hit the common:
It would great if it showed the actual file name of the imports, so that when there are multiple files in a package, it's easier to narrow down which one is the offender.
Eg:
Of course a more symmetrical approach might look like:
But whatever the formatting the code idea is that we make it easier for the user to know which file was part of the loop.
What about the situation of more than one file offending? Well this is a topological sort, so we already only guarantee that we print a single loop, even when there are more than one paths.
Of note, we don't want a full absolute path printed, we already know where things should be based on package name, we do care about the relative file path in that package.
Thanks!
The text was updated successfully, but these errors were encountered: