-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
Three mysterious problems here (running in GOPATH mode):
$ go get -u golang.org/x/tools/cmd/goimports
$ echo 'package p; var _ = f.hash' | goimports
package p
import f "golang.org/x/exp/winfsnotify"
var _ = f.hash
$
-
goimports should not be trying to find an import for
f.hashat all.
No import could possibly provide a lower-case name.
goimports should not be wasting time scanning packages at all. -
Even if goimports were to look for a package,
why on earth did it decide to import golang.org/x/exp/winfsnotify to f?
(That package ispackage winfsnotify.) -
Even if goimports were to look for a package and rename it to f,
why did it pick golang.org/x/exp/winfsnotify? That package does not
contain the stringhashanywhere in its sources.
Like I said, mysterious (and really very annoying).
/cc @heschik @ianthehat @bradfitz
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.