Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/goimports: does not consider "internal" restrictions #15993
I created two internal packages with the same name, but in different trees. I was able to reproduce the problem with the following small example.
Then create a file that uses the internal package.
Finally, run goimports on main.go.