apiserver icon indicating copy to clipboard operation
apiserver copied to clipboard

Remove gorilla/mux as a dependency

Open JonCrowther opened this issue 6 months ago • 2 comments

The gorilla/mux library has been archived and hasn't been updated in a few years. In apiserver we use it for routing, but in Go 1.22 routing enhancements were introduced that cover our use case https://go.dev/blog/routing-enhancements.

This PR replaces all instances of gorilla/mux with the standard library net/http.

JonCrowther avatar Jul 03 '25 17:07 JonCrowther

will apiserver unit tests provide a sufficient non regression testing?

pgonin avatar Jul 04 '25 11:07 pgonin

will apiserver unit tests provide a sufficient non regression testing?

That's a good question. Maybe someone from @rancher/rancher-squad-frameworks would have a better feel for that

JonCrowther avatar Jul 15 '25 21:07 JonCrowther