cweill / gotests

Automatically generate Go test boilerplate from your source code.
Apache License 2.0
4.95k stars 345 forks source link

package golang.org/x/tools/imports move to godoc.org/golang.org/x/tools/imports #91

Closed wangliyao closed 5 years ago

wangliyao commented 5 years ago

when I run go get -u -v github.com/cweill/gotests/... found this error

package golang.org/x/tools/imports: unrecognized import path "golang.org/x/tools/imports" (https fetch: Get https://golang.org/x/tools/imports?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

I try open the url then find the address jump to godoc.org/golang.org/x/tools/imports

cweill commented 5 years ago

Is this still an issue? I am unable to reproduce it. Closing for now.

bitfishxyz commented 5 years ago

Haved same problem and get a Solution:

golang.org may not works, we nedd install tools/import by hand

$ mkdir -p $GOPATH/src/golang.org/x/
$ cd $GOPATH/src/golang.org/x/
$ git clone https://github.com/golang/tools.git

# then install gotests
$ go get  github.com/cweill/gotests/...

refer

https://stackoverflow.com/questions/31334197/failed-to-install-golang-org-x-crypto-bcrypt