]> Cypherpunks repositories - gostls13.git/commit
cmd/go: set default GODEBUG for main packages
authorRuss Cox <rsc@golang.org>
Tue, 29 Nov 2022 20:43:08 +0000 (15:43 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 23 Feb 2023 10:55:13 +0000 (10:55 +0000)
commitd54aeeeea3327a760856fdc280c742b853684f47
tree87a5ba23082cc38e7d592e8b6b24b630fb8c2bab
parentbd8ec78b08ead1fb34ec8dc7bc4bf2ff7a9e8b82
cmd/go: set default GODEBUG for main packages

For #56986, change the go command to compute and set the
default GODEBUG settings for each main package, based on
the work module's go version and the //go:debug lines in the
main package.

Change-Id: I2118cf0ae6d981138138661e02120c05af648872
Reviewed-on: https://go-review.googlesource.com/c/go/+/453605
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
13 files changed:
src/cmd/go/alldocs.go
src/cmd/go/internal/list/list.go
src/cmd/go/internal/load/godebug.go [new file with mode: 0644]
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/load/test.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/gc.go
src/cmd/go/testdata/mod/rsc.io_panicnil_v1.0.0.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/rsc.io_panicnil_v1.1.0.txt [new file with mode: 0644]
src/cmd/go/testdata/script/godebug_default.txt [new file with mode: 0644]
src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt
src/cmd/go/testdata/script/work_use_issue55952.txt