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

x/vgo: vgo list does not work when repository is unreachable #25119

Closed
airylinus opened this issue Apr 27, 2018 · 3 comments
Closed

x/vgo: vgo list does not work when repository is unreachable #25119

airylinus opened this issue Apr 27, 2018 · 3 comments
Milestone

Comments

@airylinus
Copy link

> vgo list
...
GET https://golang.org/x/text/language?go-get=1
FindRepo: Get https://golang.org/x/text/language?go-get=1: dial tcp 216.239.37.1:443: i/o timeout
vgo: import "github.com/airylinus/hello" ->
import "rsc.io/quote" ->
import "github.com/airylinus/sampler" ->
import "golang.org/x/text/language": Get https://golang.org/x/text/language?go-get=1: dial tcp 216.239.37.1:443: i/o timeout

Cuz golang.org is blocked from china mainland. It's also an usual case when you import a repo named xitler.cn/untils and some day site xitler.cn shut down.

@airylinus
Copy link
Author

airylinus commented Apr 27, 2018

How about add a file repo.mod, then we can define the location of packages instead of binding them together.

@bcmills
Copy link
Contributor

bcmills commented Apr 27, 2018

Search for “Proxy Servers” in https://research.swtch.com/vgo-module.

@bcmills bcmills changed the title vgo list not work when repository is unreachable x/vgo: vgo list does not work when repository is unreachable Apr 27, 2018
@gopherbot gopherbot added this to the vgo milestone Apr 27, 2018
@rsc
Copy link
Contributor

rsc commented Jun 6, 2018

The plan is to allow proxy servers. Note also that these modules are cached on your local disk. The failure only happens when you don't have them yet. In this sense the current behavior is no worse than the current "go get" or "dep" or anything else that downloads code. I'm going to close this issue but we do want to do better with code disappearing.

@rsc rsc closed this as completed Jun 6, 2018
@golang golang locked and limited conversation to collaborators Jun 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants