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

github.com/golang/oauth2 expects import "golang.org/x/oauth2" #395

Closed
sredxny opened this issue Aug 26, 2019 · 1 comment
Closed

github.com/golang/oauth2 expects import "golang.org/x/oauth2" #395

sredxny opened this issue Aug 26, 2019 · 1 comment

Comments

@sredxny
Copy link

sredxny commented Aug 26, 2019

Hi, I am trying to download the library into my workspace, however I tried with no sucess.

My current Golang installation is version go1.12.9 linux/amd64
From my project root path (the project is using go modules) I attempted to get the library but I get the next message:

go: finding github.com/golang/oauth2 latest
go: github.com/golang/oauth2@v0.0.0-20190604053449-0f29369cfe45: parsing go.mod: unexpected module path "golang.org/x/oauth2"
go: error loading module requirements

Later I tried outside the project directory but now I get:

can't load package: package github.com/golang/oauth2: code in directory /go/src/github.com/golang/oauth2 expects import "golang.org/x/oauth2"

I would like to know what is exactly happening and how can I fix it?

@bradfitz
Copy link
Contributor

go get golang.org/x/oauth2. That's its import path, not github. The github copy is just a mirror.

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

2 participants