x/tools/cmd/goimports: put std, cmd packages in separate blocks #38735
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
This came up in CL 228378 and many others. If we delete all the imports from
src/cmd/go/internal/modload/modfile.go
then rungoimports
, we should seecmd
imports in a separate group fromstd
imports:Instead, all the
std
andcmd
imports are grouped together.goimports
does the right thing if at least onecmd
import is already in a separate group. It combines the groups when adding the firststd
orcmd
import though.The text was updated successfully, but these errors were encountered: