From 14ab998f95b53baa6e336c598b0f34e319cc9717 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 14 Mar 2023 14:25:56 -0400 Subject: cmd/go: add check for unknown godebug setting A //go:debug line mentioning an unknown or retired setting should be diagnosed as making the program invalid. Do that. We agreed on this in the proposal but I forgot to implement it. Change-Id: Ie69072a1682d4eeb6866c02adbbb426f608567c4 Reviewed-on: https://go-review.googlesource.com/c/go/+/476280 Run-TryBot: Russ Cox Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot --- src/os/exec/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/exec/exec.go') diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index 2f4bdffe9c..138be29ecf 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -348,7 +348,7 @@ type ctxResult struct { timer *time.Timer } -var execwait = godebug.New("execwait") +var execwait = godebug.New("#execwait") var execerrdot = godebug.New("execerrdot") // Command returns the Cmd struct to execute the named program with -- cgit v1.3