-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
Forked from #32457.
The similar issue reproduces in
golangci-lint
: after updatingx/tools
from685fecacd0a0
to755ce86c7629
go/packages
started loading dependencies when not needed.
As I understand the regression was introduced in this overlays commit.
And this code adds all dependencies intoneedPkgsSet
and after this toneedPkgs
, which are used to rungo list
on them:// Do another pass now that new packages have been created to determine the // set of missing packages. for _, pkg := range response.Packages { for _, imp := range pkg.Imports { pkgPath := toPkgPath(imp.ID) if _, ok := havePkgs[pkgPath]; !ok { needPkgsSet[pkgPath] = true } } }
/cc @matloob
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.