We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://go.dev/VERSION?m=text now yields:
go1.21rc4 time 2023-08-01T22:09:51Z
which leads to curl trying to download 3 URLs:
2023-08-08T14:39:23.7711800Z +++ curl 'https://go.dev/VERSION?m=text' 2023-08-08T14:39:23.7760313Z % Total % Received % Xferd Average Speed Time Time Time Current 2023-08-08T14:39:23.7760791Z Dload Upload Total Spent Left Speed 2023-08-08T14:39:23.7761022Z 2023-08-08T14:39:23.9433320Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2023-08-08T14:39:23.9434218Z 100 36 100 36 0 0 214 0 --:--:-- --:--:-- --:--:-- 214 2023-08-08T14:39:23.9458577Z ++ GO_LINUX_PACKAGE_URL='https://go.dev/dl/go1.21rc4 2023-08-08T14:39:23.9461535Z time 2023-08-01T22:09:51Z.linux-amd64.tar.gz' 2023-08-08T14:39:23.9486212Z ++ [[ '' == \g\o\.\m\o\d ]] 2023-08-08T14:39:23.9488814Z ++ [[ '' == \1\.\1\9 ]] 2023-08-08T14:39:23.9489582Z ++ [[ '' == \1\.\1\8 ]] 2023-08-08T14:39:23.9490344Z ++ [[ '' == \1\.\1\7 ]] 2023-08-08T14:39:23.9491097Z ++ [[ '' == \1\.\1\6 ]] 2023-08-08T14:39:23.9491810Z ++ [[ '' == \1\.\1\5 ]] 2023-08-08T14:39:23.9492555Z ++ [[ '' == \1\.\1\4 ]] 2023-08-08T14:39:23.9493107Z ++ [[ '' == \1\.\1\3 ]] 2023-08-08T14:39:23.9493838Z ++ [[ '' == http* ]] 2023-08-08T14:39:23.9494591Z ++ [[ -n '' ]] 2023-08-08T14:39:23.9496176Z ++ wget --progress=dot:mega https://go.dev/dl/go1.21rc4 time 2023-08-01T22:09:51Z.linux-amd64.tar.gz -O go-linux.tar.gz 2023-08-08T14:39:23.9519570Z --2023-08-08 14:39:23-- https://go.dev/dl/go1.21rc4 2023-08-08T14:39:24.0028563Z Resolving go.dev (go.dev)... 216.239.34.21, 216.239.36.21, 216.239.32.21, ... 2023-08-08T14:39:24.0126311Z Connecting to go.dev (go.dev)|216.239.34.21|:443... connected. 2023-08-08T14:39:24.1459739Z HTTP request sent, awaiting response... 200 OK 2023-08-08T14:39:24.1460225Z Length: 266 [text/html] 2023-08-08T14:39:24.1460799Z Saving to: 'go-linux.tar.gz' 2023-08-08T14:39:24.1461037Z 2023-08-08T14:39:24.1461230Z 0K 100% 4.89M=0s 2023-08-08T14:39:24.1461468Z 2023-08-08T14:39:24.1461798Z 2023-08-08 14:39:24 (4.89 MB/s) - 'go-linux.tar.gz' saved [266/266] 2023-08-08T14:39:24.1462508Z 2023-08-08T14:39:24.1462770Z --2023-08-08 14:39:24-- http://time/ 2023-08-08T14:39:24.1690735Z Resolving time (time)... failed: Name or service not known. 2023-08-08T14:39:24.1691612Z wget: unable to resolve host address 'time' 2023-08-08T14:39:24.1692710Z --2023-08-08 14:39:24-- ftp://2023-08-01t22/09:51Z.linux-amd64.tar.gz 2023-08-08T14:39:24.1693541Z => 'go-linux.tar.gz' 2023-08-08T14:39:24.2100921Z Resolving 2023-08-01t22 (2023-08-01t22)... failed: Name or service not known. 2023-08-08T14:39:24.2101935Z wget: unable to resolve host address '2023-08-01t22' 2023-08-08T14:39:24.2102600Z FINISHED --2023-08-08 14:39:24-- 2023-08-08T14:39:24.2103016Z Total wall clock time: 0.3s 2023-08-08T14:39:24.2103558Z Downloaded: 1 files, 266 in 0s (4.89 MB/s)
I guess we have to curl https://go.dev/VERSION?m=text | head -n1 now to only obtain the first line and discard the timestamp
curl https://go.dev/VERSION?m=text | head -n1
The text was updated successfully, but these errors were encountered:
Fix go.dev/VERSION format change
b568a1f
fixes wangyoucao577#129
Fix go.dev/VERSION format change (#130)
bf9950f
fixes #129
Successfully merging a pull request may close this issue.
https://go.dev/VERSION?m=text now yields:
which leads to curl trying to download 3 URLs:
I guess we have to
curl https://go.dev/VERSION?m=text | head -n1
now to only obtain the first line and discard the timestampThe text was updated successfully, but these errors were encountered: