Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

go get github.com/tools/godep not working #154

Closed
ekanna opened this issue Dec 5, 2014 · 8 comments
Closed

go get github.com/tools/godep not working #154

ekanna opened this issue Dec 5, 2014 · 8 comments

Comments

@ekanna
Copy link

ekanna commented Dec 5, 2014

Error Message:

package github.com/tools/godep
    imports github.com/kr/fs
    imports golang.org/x/tools/go/vcs: unrecognized import path "golang.org/x/tools/go/vcs"
@lobatt
Copy link

lobatt commented Dec 9, 2014

I had this issue before, but it was because golang.org is blocked in China (Don't ask me why...don't even get me started...).

So try "go get golang.org/x/tools/go/vcs" first to check your connectivity to this repo.

@pumbers
Copy link

pumbers commented Dec 10, 2014

I have the same issue. "go get golang.org/x/tools/go/vcs" fails with the same error. However, golang.org and the full "golang.org/x/tools/go/vcs" are accessible from the company network - opening the URL in a browser redirects to the godoc page for vcs.

Trying "git clone https://golang.org/x/tools/go/vcs" I get a 407 (Proxy authentication needed), which means I need to tweak my proxy setup in git.

@ekanna
Copy link
Author

ekanna commented Dec 10, 2014

Thanks. It is working fine for me now. It is because of proxy. golang.org was not there in allowed domains previously.

@ekanna ekanna closed this as completed Dec 10, 2014
@ltzmaxwell
Copy link

It's still working for me ,and I'm sure it's not proxy problem.

@BrickXu
Copy link

BrickXu commented Jun 5, 2015

you can use go get github.com/golang/tools, it's a mirror from https://godoc.org/golang.org/x/tools, then mkdir -p src/golang.org/x/ and copy src/github.com/golang/tools to src/golang.org/x/.

It would work well behind GFW.

@ghost
Copy link

ghost commented Jun 18, 2015

Or you can set up proxy

root@ed27c545f7af:~# cat ~/proxy.conf 
export http_proxy=http://172.17.42.1:8118
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"


@watchpoints
Copy link

watchpoints commented Oct 18, 2017

Download/Install

The easiest way to install is to run go get -u golang.org/x/tools/....
You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools.

@zzusunwei
Copy link

Look's like i still have this issue in shanghai. China, does anyone know which proxy I can use in China . Thanks

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