RepoJournal
Go

@golang

Go and the standard library — backend infrastructure at scale

What actually shipped in Go, written up every day — commits, pull requests, releases, and security advisories.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Go Infrastructure Full archive →

The Wire · Showcase

GO TOOLCHAIN BUILD FLAGS GET PRECISION FIX, CGO PROBE ESCAPES WRAPPER TRAP

By RepoJournal · Filed · About Go

The go command's cgo compiler version detection was running under -toolexec when it shouldn't have been, breaking builds for anyone wrapping their toolchain.

Go just landed a fix that stops the cgo compiler version probe from executing under the -toolexec wrapper [1]. The -toolexec flag lets developers wrap toolchain programs like compile and link for profiling or substitution, but the version detection probe was getting caught in that wrapper while actual cgo compiles never do, causing the wrapper to see probes instead of real work. This mismatch broke reproducible builds and profiling for anyone using -toolexec with cgo. Separately, the toolchain now accepts the -fexcess-precision compiler flag [2], which was missing from the recognized flags list and causing legitimate compiler options to fail during cgo builds. Both fixes address real friction points in the build system for teams doing advanced compilation workflows.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] cmd/go: don't run cgo compiler version probe under -toolexec golang/go
  2. [2] cmd/go/internal/work: accept -fexcess-precision=<style> compiler flags golang/go

Quick answers

What shipped in Go on July 20, 2026?
The go command's cgo compiler version detection was running under -toolexec when it shouldn't have been, breaking builds for anyone wrapping their toolchain. In total, 2 commits landed.
Who contributed to Go on July 20, 2026?
2 developers shipped this update, including harjoth and Andreas Bolka.
What were the notable Go updates?
cmd/go: don't run cgo compiler version probe under -toolexec and cmd/go/internal/work: accept -fexcess-precision=<style> compiler flags.

More from @golang

Daily updates, in your inbox

Follow Go

What actually shipped in Go, written up every day — commits, pull requests, releases, and security advisories.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?