Description
The releases json file is used by a bunch of tools like rules_go to get a list of go releases.
The current URL works fine for many cases, but trips up mirror sites, for example if you use Artifactory to cache the URL it won't refresh the cache as it doesn't understand the URL format.
Given the comments in the original issue (#23746 (comment)):
@bradfitz - sounds great, I'll get around to this during the weekend. Any thoughts on the releases.json URL? Could probably just be /releases
I don't care much. We use ?mode=json for build.golang.org/?mode=json though.
Would it be acceptable to provide this at an alternate URL like the originally proposed https://golang.org/dl/releases.json? Probably makes sense to mirror both the include=all
and the normal releases (see #29380).
This would also make things like curl -O
work more nicely (as the downloaded name would be releases-all.json
rather than ?mode=json&include=all
.
Proposal:
Existing | Mirror |
---|---|
https://golang.org/dl/?mode=json | https://golang.org/dl/releases.json |
https://golang.org/dl/?mode=json&include=all | https://golang.org/dl/releases-all.json |