]> Cypherpunks repositories - gostls13.git/commit
cmd/go: rewrite cgo names to "C." in compiler error messages
authorIan Lance Taylor <iant@golang.org>
Wed, 19 Nov 2025 00:24:04 +0000 (16:24 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 4 Feb 2026 19:25:57 +0000 (11:25 -0800)
commit1bbb78e7772e7530338e9f154936dc2479adafac
treee9a54d8fc137832728d185db10a1c7bd411d359c
parenta3688ab13e76762a168f43e91ca9422c847ee896
cmd/go: rewrite cgo names to "C." in compiler error messages

We used to do this but it broke in Go 1.10. This restores the rewrite,
but only applied to compiler output for packages that use cgo.
That is all that the original rewrite applied to anyhow.

Fixes #76339

Change-Id: Ife8ee858ddd0ff7bcc7423455b2eabf8381b7bde
Reviewed-on: https://go-review.googlesource.com/c/go/+/721821
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/cmd/cgo/internal/testerrors/errors_test.go
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/shell.go
src/internal/lazyregexp/lazyre.go