imports: prefer paths imported by sibling files.
Adds an Imports field to packageInfo with the imports used by sibling
files, and uses it preferentially if it matches a missing import.
Example: if foo/foo.go imports "local/log", it's a reasonable assumption
that foo/bar.go will also want "local/log" instead of "log".
Run-TryBot: Brad Fitzpatrick <firstname.lastname@example.org>
Reviewed-by: Brad Fitzpatrick <email@example.com>
2 files changed