Join GitHub today
cmd/go: consider some type of tooling to easily test multiple major versions in a single binary #27514
What version of Go are you using (
I would go a step further: ideally, all major versions except for the latest would be simple forwarding shims (to the next major version). Then the test of
referenced this issue
Sep 6, 2018
https://golang.org/cl/137076 contains an initial version of that tool.
In general, you can use blank-imports to pull in all of the major versions you care about to at least test that they can compile and init together.
Beyond that, I don't think there's an obvious path forward on this issue for now. If we discover specific pain points — or have ideas for specific tools — we can open separate issues for those.