Skip to content

x/build/cmd/relui: simplify HTTP route handling code by using net/http's pattern matching #76860

@dmitshur

Description

@dmitshur

The route handling code in relui was added before net/http was enhanced with pattern matching in Go 1.22 (https://go.dev/doc/go1.22#enhanced_routing_patterns). Relui can rely on 1.22+ being available (its go.mod has go 1.24.0+), so it might be possible to simplify its code by using that. Filing this issue for that.

Also noting here that some of the route registration uses task names, which we've recently realized may contain "/" characters, and those will need some thought to handle.

CC @golang/release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildersx/build issues (builders, bots, dashboards)NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions