edp1096
(Robert Sung Wook Shin)
December 13, 2021, 6:40am
1
I know current go version is 1.17.5 but, - go.dev says 1.17.4.
Is there any other solution for getting latest go version except using git fetch?
GonzaSaya
(Gonzalo Sayago)
December 13, 2021, 11:00am
2
You can download the lastest version from Downloads - go.dev
Hultan
(Per Hultqvist)
December 14, 2021, 5:41pm
4
Not sure if this is what you are looking for, but a few days ago I found out about the project below, and it worked great to update Go on my machine (from 1.14.x to 1.17.5).
1 Like
edp1096
(Robert Sung Wook Shin)
December 14, 2021, 6:20pm
5
Yes, I am using similar script to the repo.
@echo off
echo This will remove existing Go binaries.
echo If you not want update, Ctrl+C or close this cmd window
echo.
pause
cd ..\tools\langs
rmdir go /s /q
For /f %%i in ('..\utils\gnuwin\curl.exe "https://go.dev/VERSION?m=text"') do echo. && echo Download %%i && set "gover=https://go.dev/dl/%%i.windows-amd64.zip"
..\utils\gnuwin\curl.exe --progress-bar -Lo go.zip %gover%
echo. && echo Extracting.. && echo.
..\utils\gnuwin\unzip.exe go.zip
del go.zip
This file has been truncated. show original
By the way, it seems that - go.dev site show correct version number
system
(system)
Closed
March 14, 2022, 6:20pm
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.