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/internal/imports: should not use "." in the first component to decide standard library #41118
x/tools/internal/imports uses "." in the first component of import path to decide whether an import is a standard library. This is not reliable as some orgs may prefix generated code with "mock", "proto" etc to keep them separate from regular code.
A more reliable approach is github.com/bazelbuild/bazel-gazelle/language/go.IsStandard.
What version of Go are you using (