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

support use other download url #26

Closed
ykfq opened this issue Sep 30, 2020 · 2 comments
Closed

support use other download url #26

ykfq opened this issue Sep 30, 2020 · 2 comments

Comments

@ykfq
Copy link

ykfq commented Sep 30, 2020

For some reason I'm not able to reach the default site https://golang.org, but https://golang.google.cn is ok.

 # gvm install go1.14.9
[g] URL "https://golang.org/dl/" is unreachable ==> Get https://golang.org/dl/: EOF

So is it possible to set the download url BEFORE install ?

@andrewkroh
Copy link
Owner

We could add support for setting the base URL via an environment variable like GVM_DOWNLOAD_URL. Would that work for you?

@andrewkroh
Copy link
Owner

There has been --url flag to override the default download URL since 2018 when #12 was added . The default is https://storage.googleapis.com/golang.

Optional flags:
  -h, --help                   Show context-sensitive help (also try --help-long and --help-man).
  -d, --debug                  Enable debug logging to stderr.
      --os=OS                  Go binaries target os.
      --arch=ARCH              Go binaries target architecture.
      --home=HOME              GVM home directory.
      --url=URL                Go binaries repository base URL.
      --repository=REPOSITORY  Go upstream git repository.
      --version                Show application version.

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

No branches or pull requests

2 participants