aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2022-11-30 09:28:54 -0500
committerRuss Cox <rsc@golang.org>2022-11-30 14:29:28 +0000
commitdf189d0b50bf2652d286c447666fa3e3b16c2c04 (patch)
tree459ce3fd2899454ed4d96b6e9aa98794e98ae036
parent094f34ac6821c467e66a3e0606e8e7b24c59baed (diff)
downloadgo-x-proposal-df189d0b50bf2652d286c447666fa3e3b16c2c04.tar.xz
design/56986-godebug: add DefaultGODEBUG to debug.BuildInfo.Settings
Change-Id: I45a30d25b6dc18b49f834648082dcce8d6aeba92 Reviewed-on: https://go-review.googlesource.com/c/proposal/+/453499 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
-rw-r--r--design/56986-godebug.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/design/56986-godebug.md b/design/56986-godebug.md
index a535990..e323691 100644
--- a/design/56986-godebug.md
+++ b/design/56986-godebug.md
@@ -180,7 +180,11 @@ Specifically, I propose that we:
reporting the combination of the go.mod-based defaults and the source code overrides,
as well as adding to `Package` new fields `Directives`, `TestDirectives,` and `XTestDirectives`, all of type `[]string`.
-8. Document these commitments as well as how to use GODEBUG in
+8. Add a new `DefaultGODEBUG` setting to `debug.BuildInfo.Settings`,
+ to be reported by `go version -m` and other tools
+ that inspect build details.
+
+9. Document these commitments as well as how to use GODEBUG in
the [compatibility guidelines](https://golang.org/doc/go1compat).
## Rationale
@@ -242,10 +246,13 @@ in the previous section.
and find the new `//go:debug` lines.
7. This provides an easy way for developers to understand which default GODEBUG
- their programs are compiled with. It will be particularly useful when switching
+ their programs will be compiled with. It will be particularly useful when switching
from one `go` line to another.
-8. The compatibility documentation should explain all this so developers know about it.
+8. This provides an easy way for developers to understand which default GODEBUG
+ their existing programs have been compiled with.
+
+9. The compatibility documentation should explain all this so developers know about it.
## Compatibility