-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
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
x/website/internal/dl: expand JSON download mode to optionally return archive and unstable releases also #29380
Comments
Why not just |
All I personally need is |
I’m down for an |
Change https://golang.org/cl/155740 mentions this issue: |
Change https://golang.org/cl/163741 mentions this issue: |
This change adds an optional query parameter, include=all, to the https://godoc.org/dl/?mode=json endpoint. When this parameter is set the returned JSON will include metadata for Stable, Archive, and Unstable downloads, rather than the default which only lists Stable. Fixes golang/go#29380 Change-Id: Id51e839919df9dd967d2f11ba0658f51f61b6d1b Reviewed-on: https://go-review.googlesource.com/c/website/+/163741 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Issue
The PR that resolved #23746 provided a nice JSON response on the download page https://golang.org/dl/?mode=json
However, this only provides for stable releases.
I would like to consume unstable and archive release metadata as JSON also.
Proposal
I'd like to modify https://github.com/golang/tools/blob/4d6773f/godoc/dl/server.go#L80-L88 to add a query param to include archive or unstable releases optionally.
I'm thinking
https://golang.org/dl/?mode=json[&include=(all|stable|unstable|archive)]
When the
include
param is absent, it would default tostable
which is the current behaviour already.The text was updated successfully, but these errors were encountered: