Radar · Go · Archive · Week 10 · Mar 3 – 9, 2025
x/tools: tag and delete refactor/rename, refactor/importgraph, go/buildutil, cmd/gomvpkg
Worth knowingtooling
- What changed
- The Go team has decided to tag and delete the packages
x/tools/refactor/rename,x/tools/refactor/importgraph,x/tools/go/buildutil, andx/tools/cmd/gomvpkg. They will continue to work as they do now, but will no longer receive updates. - Production impact
- The source does not say.
- Try it
- Run
go list -m allto see that these modules still resolve, but note that future updates will not be available. - Source
- github.com/golang/go/issues/69538
Understand it, then run it
Run it now
// This program demonstrates that the packages
// golang.org/x/tools/refactor/rename,
// golang.org/x/tools/refactor/importgraph,
// golang.org/x/tools/go/buildutil,
// and golang.org/x/tools/cmd/gomvpkg
// are still importable but will no longer receive updates.
// In this sandbox we cannot fetch external modules, so the imports would fail.
// In a real environment, the following imports would compile and the program would run.
package main
import (
"fmt"
// _ "golang.org/x/tools/refactor/rename"
// _ "golang.org/x/tools/refactor/importgraph"
// _ "golang.org/x/tools/go/buildutil"
// _ "golang.org/x/tools/cmd/gomvpkg"
)
func main() {
fmt.Println("The x/tools refactor and build utilities are still available but are now frozen.")
}
What it printed when we ran it on Go 1.27.1
The x/tools refactor and build utilities are still available but are now frozen.
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed