x/build/maintner: make it easy for interested clients to subscribe/watch for new Go releases #37577
Labels
Builders
x/build issues (builders, bots, dashboards)
Documentation
Issues describing a change to documentation.
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
There are many clients that might be interested in knowing when a new Go release is tagged, in order to take some automated action. One recent example is pkg.go.dev (see issue #37568), but there are plenty of others.
Maintner already tracks the Go repository and knows when any tags are made. Interested clients can use a maintner client (either a normal one, or a tail-only client) to easily get notified and take appropriate action.
It should be helpful to make this easier to discover and use. /cc @julieqiu @toothrot @cagedmantis
Perhaps it can be done by adding an example to maintner package documentation. Here's a starting point for an example that uses
maintner.TailNetworkMutationSource
to watch for all new tags created in the main Go repository and printing them to stdout:Using a full maintner client or
maintner.NewNetworkMutationSource
is a little more involved because it requires preserving state, which means writing to disk or another place. But this option can be investigated too.Finally, we can consider exposing this functionality via a higher level API, but I think it should be easier to prototype this before committing to a public API that's hard to change.
The text was updated successfully, but these errors were encountered: