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
go version
Latest stable
GOLANG_LATEST_STABLE_VERSION=$(curl https://go.dev/VERSION?m=text)
This currently returns go1.17.7 but go1.17.6 is the latest which is built and so this has broken our CICD pipeline
go1.17.7
go1.17.6
Source available but not binary downloadable
go env
$ go env
curl https://go.dev/VERSION?m=text should return the latest version available for download.
So for example this code works in our docker container:
RUN GOLANG_LATEST_STABLE_VERSION=$(curl https://go.dev/VERSION?m=text) \ && curl -OL https://go.dev/dl/${GOLANG_LATEST_STABLE_VERSION}.linux-ppc64le.tar.gz \
:-)
The text was updated successfully, but these errors were encountered:
VERSION is the version running the website, not latest version to download.
Sorry, something went wrong.
Can you suggest a way to get the latest version available to download for a CICD pipeline?
go.dev/dl/?mode=json
Thank you :-) worked perfectly...
GOLANG_LATEST_STABLE_VERSION=$(curl https://go.dev/dl/?mode=json | grep -o 'go.*.linux-ppc64le.tar.gz' | head -n 1 | tr -d '\r\n' )
which also evolved too:
GOLANG_LATEST_STABLE_VERSION=$(curl "https://go.dev/dl/?mode=json" | jq -r '.[0].files[].filename | select(test("go.*.linux-ppc64le.tar.gz"))') \
No branches or pull requests
What version of Go are you using (
go version
)?Latest stable
Does this issue reproduce with the latest release?
GOLANG_LATEST_STABLE_VERSION=$(curl https://go.dev/VERSION?m=text)
This currently returns
go1.17.7
butgo1.17.6
is the latest which is built and so this has broken our CICD pipelineSource available but not binary downloadable
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
curl https://go.dev/VERSION?m=text should return the latest version available for download.
So for example this code works in our docker container:
What did you see instead?
:-)
The text was updated successfully, but these errors were encountered: