kevincobain2000 / gobrew

Go version manager, written in Go. Super simple tool to install and manage Go versions. Install go without root. Gobrew doesn't require shell rehash.
https://medium.com/web-developer/go-version-manager-gobrew-c8750157dfe6
MIT License
358 stars 24 forks source link

[feature requirement] can add mirror url for download go installation package? #171

Closed yudar1024 closed 7 months ago

yudar1024 commented 7 months ago

for some reason, can not access go.dev to download go installation package. but has some mirror like https://studygolang.com/dl can be access . can gobrew provide some way to use the mirror site?

kevincobain2000 commented 7 months ago

hmm, not sure if we want to go all the way and provide a mirror. We could however, add fallback urls.

juev commented 7 months ago

We can use a separate parameter at startup that would allow us to set or change the current values ​​for a number of variables. Why not?

kevincobain2000 commented 7 months ago

I think we can do that already

https://github.com/kevincobain2000/gobrew/blob/e3aeb885124bae7899228ea35235b3614f28e9db/helpers.go#L324

juev commented 7 months ago

Oh, that's right! You can simply change the environment variable. :)