This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Go · Archive · Week 32 · Aug 4 – 10, 2025

cmd/fix: make all current fixes no‑ops except buildtag

Worth knowingtooling

What changed
The Go team made all existing go fix fixes no‑ops except for buildtag. The functionality of the former context fix will now be provided via //go:fix inline annotations in golang.org/x/net/context.
Production impact
The source does not say.
Try it
Run go fix -fix=cftype on a small program and observe that nothing changes.
Source
github.com/golang/go/issues/73605

Understand it, then run it

go fix used to automatically update code when the language changed. The change removes every automatic update except the one that cleans up old +build tags. Instead of running a fix that rewrites imports from golang.org/x/net/context to the standard context, that logic is now embedded in the library itself as a comment directive //go:fix inline. So, if you run go fix today, it will do nothing for those old fixes; only the build‑tag cleanup still runs.

Run it now

Todaygo
// This program demonstrates the current state of `go fix`.
// The legacy context migration is no longer performed by `go fix`
// and must be provided via `//go:fix inline` annotations in the
// golang.org/x/net/context package.  The only active fix is
// the build‑tag cleanup, which is not shown here because it
// operates on source files, not at runtime.

package main

import "fmt"

func main() {
	fmt.Println("go fix no longer performs context migration.")
}

What it printed when we ran it on Go 1.27.1

go fix no longer performs context migration.

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