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

goenv install timeout #251

Open
fakeyanss opened this issue Oct 11, 2022 · 1 comment
Open

goenv install timeout #251

fakeyanss opened this issue Oct 11, 2022 · 1 comment

Comments

@fakeyanss
Copy link

fakeyanss commented Oct 11, 2022

I am maintained in China. And you know the network in China is not stable to access to golang.org.

I found the file in plugins/go-build/share/go-build/{versions}. And I can download golang package after I replace the url of if.
(file path:
for installation by homebrew: /opt/homebrew/Cellar/goenv/HEAD-xxx/plugins/go-build/share/go-build
for installation by manual: ~/.goenv/plugins/go-build/share/go-build
)

eg:

install_darwin_arm "Go Darwin arm 1.19.0" "https://golang.org/dl/go1.19.darwin-arm64.tar.gz#859e0a54b7fcea89d9dd1ec52aab415ac8f169999e5fdfb0f0c15b577c4ead5e"

replace to

install_darwin_arm "Go Darwin arm 1.19.0" "https://go.dev/dl/go1.19.darwin-arm64.tar.gz#859e0a54b7fcea89d9dd1ec52aab415ac8f169999e5fdfb0f0c15b577c4ead5e"

Lastly, is there some way to set a env variable of installation mirror, or replace golang.org to go.dev formally in this project?

ps:
golang official website has been migrated from golang.org to go.dev.

@ghost
Copy link

ghost commented Oct 13, 2022

There is a PR to do this #218 that's sitting open

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