Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find package "golang.org/x/net/context" #624

Closed
johnnynode opened this issue Aug 18, 2017 · 1 comment
Closed

Cannot find package "golang.org/x/net/context" #624

johnnynode opened this issue Aug 18, 2017 · 1 comment

Comments

@johnnynode
Copy link

johnnynode commented Aug 18, 2017

Compile Error:

cannot find package "golang.org/x/net/context" in any of:
.../projects/go-projects/src/github.com/blevesearch/bleve/vendor/golang.org/x/net/context 
(vendor tree)
/usr/local/go/src/golang.org/x/net/context (from $GOROOT)
.../projects/go-projects/src/golang.org/x/net/context (from $GOPATH)

When I tried to get the net dependence using go get golang.org/x/net/..., it turned out timeout.

Also I tried this way : go get golang.org/x/net/context referencing to https://stackoverflow.com/questions/41372420/golang-error-cannot-find-package.
Still got timeout.

@johnnynode
Copy link
Author

Fixed by this : beego/admin#55

cd src
mkdir golang.org
cd golang.org
mkdir x
cd x
git clone git@github.com:golang/net.git --depth 1

Then Compile again, got fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant