You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gopls/internal/analysis/modernize: don't import slices within slices
This CL strengthens the check that the various modernizer passes
use to skip packages in which the fixes cannot be applied. Before,
we would not add an import of "slices" from withing the "slices"
package itself, but we cannot add this import from any package
that "slices" itself transitively depends upon, as this would
create an import cycle.
So, we consult the std dependency graph baked into the executable.
This feature was tested interactively by running modernize on std.
Updates golang/go#71847
Change-Id: Iaec6ef07b58ca07df498db63369dae8087331ab9
Reviewed-on: https://go-review.googlesource.com/c/tools/+/653595
Reviewed-by: Robert Findley <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
0 commit comments