Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

go get go-symbols timeout #653

Closed
amnotbusy opened this issue Nov 27, 2016 · 18 comments
Closed

go get go-symbols timeout #653

amnotbusy opened this issue Nov 27, 2016 · 18 comments

Comments

@amnotbusy
Copy link

$ go get -u -v github.com/newhook/go-symbols
github.com/newhook/go-symbols (download)
Fetching https://golang.org/x/tools/go/buildutil?go-get=1
https fetch failed: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
package golang.org/x/tools/go/buildutil: unrecognized import path "golang.org/x/tools/go/buildutil" (https fetch: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

also
go-symbols
guru
gorename
goreturns
golint
gotests

@ramya-rao-a
Copy link
Contributor

Are you getting this error only while getting go-symbols or even rest of the tools?
Can you share the output for go env and go version ?

@amnotbusy
Copy link
Author

myMacBook-Pro:~ adrian$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/adrian/Git/Bag:/Users/adrian/Git/CloudNumber"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/c_/z3wg1g3j4vb48n6vr8t2sv6c0000gp/T/go-build748633615=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
myMacBook-Pro:~ adrian$ go version
go version go1.7.3 darwin/amd64
myMacBook-Pro:~ adrian$

@amnotbusy
Copy link
Author

Installing 6 tools
go-symbols
guru
gorename
goreturns
golint
gotests

Installing go-symbols FAILED
Installing guru FAILED
Installing gorename FAILED
Installing goreturns SUCCEEDED
Installing golint SUCCEEDED
Installing gotests FAILED

4 tools failed to install.

go-symbols:
Error: Command failed: /usr/local/go/bin/go get -u -v github.com/newhook/go-symbols
github.com/newhook/go-symbols (download)
Fetching https://golang.org/x/tools/go/buildutil?go-get=1
https fetch failed: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
package golang.org/x/tools/go/buildutil: unrecognized import path "golang.org/x/tools/go/buildutil" (https fetch: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
github.com/newhook/go-symbols (download)
Fetching https://golang.org/x/tools/go/buildutil?go-get=1
https fetch failed: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
package golang.org/x/tools/go/buildutil: unrecognized import path "golang.org/x/tools/go/buildutil" (https fetch: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

guru:
Error: Command failed: /usr/local/go/bin/go get -u -v golang.org/x/tools/cmd/guru
Fetching https://golang.org/x/tools/cmd/guru?go-get=1
https fetch failed: Get https://golang.org/x/tools/cmd/guru?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
package golang.org/x/tools/cmd/guru: unrecognized import path "golang.org/x/tools/cmd/guru" (https fetch: Get https://golang.org/x/tools/cmd/guru?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
Fetching https://golang.org/x/tools/cmd/guru?go-get=1
https fetch failed: Get https://golang.org/x/tools/cmd/guru?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
package golang.org/x/tools/cmd/guru: unrecognized import path "golang.org/x/tools/cmd/guru" (https fetch: Get https://golang.org/x/tools/cmd/guru?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

gorename:
Error: Command failed: /usr/local/go/bin/go get -u -v golang.org/x/tools/cmd/gorename
Fetching https://golang.org/x/tools/cmd/gorename?go-get=1
https fetch failed: Get https://golang.org/x/tools/cmd/gorename?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
package golang.org/x/tools/cmd/gorename: unrecognized import path "golang.org/x/tools/cmd/gorename" (https fetch: Get https://golang.org/x/tools/cmd/gorename?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
Fetching https://golang.org/x/tools/cmd/gorename?go-get=1
https fetch failed: Get https://golang.org/x/tools/cmd/gorename?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
package golang.org/x/tools/cmd/gorename: unrecognized import path "golang.org/x/tools/cmd/gorename" (https fetch: Get https://golang.org/x/tools/cmd/gorename?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

gotests:
Error: Command failed: /usr/local/go/bin/go get -u -v github.com/cweill/gotests/...
github.com/cweill/gotests (download)
Fetching https://golang.org/x/tools/imports?go-get=1
Parsing meta tags from https://golang.org/x/tools/imports?go-get=1 (status code 200)
get "golang.org/x/tools/imports": found meta tag main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/imports?go-get=1
get "golang.org/x/tools/imports": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
golang.org/x/tools (download)

cd /Users/adrian/Git/Bag/src/golang.org/x/tools; git pull --ff-only

fatal: unable to access 'https://go.googlesource.com/tools/': Failed to connect to go.googlesource.com port 443: Operation timed out
package golang.org/x/tools/imports: exit status 1
github.com/cweill/gotests (download)
Fetching https://golang.org/x/tools/imports?go-get=1
Parsing meta tags from https://golang.org/x/tools/imports?go-get=1 (status code 200)
get "golang.org/x/tools/imports": found meta tag main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/imports?go-get=1
get "golang.org/x/tools/imports": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
golang.org/x/tools (download)

cd /Users/adrian/Git/Bag/src/golang.org/x/tools; git pull --ff-only

fatal: unable to access 'https://go.googlesource.com/tools/': Failed to connect to go.googlesource.com port 443: Operation timed out
package golang.org/x/tools/imports: exit status 1

@amnotbusy
Copy link
Author

Installing 1 tools
gotests

Installing gotests FAILED

1 tools failed to install.

gotests:
Error: Command failed: /usr/local/go/bin/go get -u -v github.com/cweill/gotests/...
github.com/cweill/gotests (download)
Fetching https://golang.org/x/tools/imports?go-get=1
https fetch failed: Get https://golang.org/x/tools/imports?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
golang.org/x/tools (download)

cd /Users/adrian/Git/Bag/src/golang.org/x/tools; git pull --ff-only

fatal: unable to access 'https://go.googlesource.com/tools/': Failed to connect to go.googlesource.com port 443: Operation timed out
package golang.org/x/tools/imports: exit status 1
github.com/cweill/gotests (download)
Fetching https://golang.org/x/tools/imports?go-get=1
https fetch failed: Get https://golang.org/x/tools/imports?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
golang.org/x/tools (download)

cd /Users/adrian/Git/Bag/src/golang.org/x/tools; git pull --ff-only

fatal: unable to access 'https://go.googlesource.com/tools/': Failed to connect to go.googlesource.com port 443: Operation timed out
package golang.org/x/tools/imports: exit status 1

@amnotbusy
Copy link
Author

https://github.com/cweill/gotests/... 404

@amnotbusy
Copy link
Author

I can visit https://go.googlesource.com/tools/

@leaxoy
Copy link
Contributor

leaxoy commented Nov 28, 2016

please use proxy for vscode, configuration key is http.proxy.
or manual install from command line

@amnotbusy
Copy link
Author

I already used pptp vpn, I can visit https://go.googlesource.com/tools/ and github

@ramya-rao-a
Copy link
Contributor

@a57571735 Are you able to run go get for these tools from the command line?
Example:

  • go get -u -v github.com/cweill/gotests/...
  • go get -u -v github.com/newhook/go-symbols
  • go get -u -v golang.org/x/tools/cmd/gorename

Like @leaxoy suggested can you set http.proxy in your settings and try too?

@leaxoy
Copy link
Contributor

leaxoy commented Nov 28, 2016

Do steps as flows. Because I had the same problem due to live in china.

  1. setup an vpn(for me: shadowsocks), then transform socks5 to http protocol.
  2. in command line, export http_proxy=${proxyhost:proxyport} https_proxy=${proxyhost:proxyport}
  3. get tool like go get -u -v golang.org/x/tools.
  4. install tool with go build golang.org/x/tools/cmd/guru

Hopes this help you!!!

@amnotbusy
Copy link
Author

I used Cow https://github.com/cyfdecyf/cow to transform socks5 to http protocol, then set vscode configuration key http.proxy, also failed...

@amnotbusy
Copy link
Author

@ramya-rao-a @leaxoy @mattetti @buckett @saml Thanks to help me, but I want to give it up, I try it to the best of my ability, failed!failed!failed!failed!failed!failed!failed!failed!
Go to hell GOLANG

@amnotbusy
Copy link
Author

wooooooow,SUCCEEDED! I remember I have seen through the modify hosts to access some websites, I said last try one more time, BINGO! If any one had the same problem, do as flows, open 58hlsg.com, click 外网Hosts, you'll see, realy very very simple and easy. GOLANG am coming!

@fqdeng
Copy link

fqdeng commented Dec 14, 2016

@a57571735
同为墙内狗,看了你这个文章 我的go终于安装成功了

@zigo101
Copy link

zigo101 commented Apr 4, 2017

Looks this issue has nothing related to the network.
I encountered the same problem and just deleted the GOPATH/pkg folder, then re-get and it becomes ok.

@YouZhengChuan
Copy link

YouZhengChuan commented Apr 14, 2017

@jonwinters 怎么弄的?设置的代理吗?你有http和https的免费代理可以用吗?

我用vpn翻墙也不行,
$ go get golang.org/x/net/context
package golang.org/x/net/context: unrecognized import path "golang.org/x/net/context" (https fetch: Get https://golang.org/x/net/context?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

$ nc -v golang.org 443
nc: connectx to golang.org port 443 (tcp) failed: Operation timed out
nc: connectx to golang.org port 443 (tcp) failed: No route to host
nc: connectx to golang.org port 443 (tcp) failed: No route to host

$ ping golang.org
PING golang-consa.l.google.com (216.239.37.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3

Solution by github

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

@amnotbusy
Copy link
Author

@YouZhengChuan 之前的提供的那个挂了,你现在可以用 58jiasu.com 免费的梯子

@caryyu
Copy link

caryyu commented Dec 22, 2017

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants