Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/go/packages: overlays cause loading of unneeded dependencies #32538
Forked from #32457.
Unfortunately, it's not always possible to avoid loading extra dependencies, and go/packages can't tell if they're unneeded unless the transitive set of dependencies is not changed at all.
I'll send a CL to avoid loading extra dependencies if the transitive set of dependencies is not changed. But I don't think this problem can be solved satisfactorily until go list starts handling overlays itself...