Closed
Description
In GOPATH mode:
$ go get gopkg.in/russross/blackfriday.v2
$ echo 'package p; import "gopkg.in/russross/blackfriday.v2"; var _ blackfriday.Node' | goimports
package p
import blackfriday "gopkg.in/russross/blackfriday.v2"
var _ blackfriday.Node
$
Why did goimports rename this import? It should not be doing that. The package clause in the package already says blackfriday, and furthermore the package name follows the standard import path rules for package names on gopkg.in.
/cc @heschik @bradfitz