golang-tools-install-script icon indicating copy to clipboard operation
golang-tools-install-script copied to clipboard

Use Actions to update Go version automatically.

Open capric98 opened this issue 3 years ago • 3 comments

capric98 avatar Mar 05 '21 15:03 capric98

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.

capric98 avatar Mar 05 '21 15:03 capric98

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?

canha avatar Mar 12 '21 13:03 canha

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 :)

capric98 avatar Mar 12 '21 15:03 capric98