golang-tools-install-script
golang-tools-install-script copied to clipboard
Use Actions to update Go version automatically.
I was about to open a new merge request to change the download url of Go, but I committed it to master branch heedlessly so here it is...
Compare to storage.googleapis.com
, dl.google.com
seems to have a better CDN in some areas.
Hi @capric98, thanks for submitting this!
Wouldn't it be more beneficial to introduce this logic into the script itself? We would need to find a way to do it without Python, but what do you think?
It is a little bit hard since bash does not support PCRE natively. To achieve this, we have to introduce additional tools(such as Perl/Python), or, write a bash function in Unix way, which is difficult...
I tried to get latest version from git, which is complex(they released 1.16.2/1.15.10 at same time...)
Additionally, golang.org
got blocked by GFW and cannot be access from Mainland China, while most web approach redirect to https://golang.org/dl
.
I am also waiting for a better solution :)