From: Michael Matloob Date: Wed, 5 Mar 2025 20:20:46 +0000 (-0500) Subject: doc: update godebug doc to clarify godebug directive in workspace X-Git-Tag: go1.25rc1~814 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3aef716168475c9cdc508c5afd71782a8c2b5506;p=gostls13.git doc: update godebug doc to clarify godebug directive in workspace Make it clear that we only use godebug directives in the go.work, and that we don't use those in go.mod, when we're in a workspace. Fixes #72109 Change-Id: I648bfa4dd9b3ca0ac299c0a890843d41fe1ac7f0 Reviewed-on: https://go-review.googlesource.com/c/go/+/655158 LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor --- diff --git a/doc/godebug.md b/doc/godebug.md index c1ef9115a0..4325b95820 100644 --- a/doc/godebug.md +++ b/doc/godebug.md @@ -109,7 +109,9 @@ Only the work module's `go.mod` is consulted for `godebug` directives. Any directives in required dependency modules are ignored. It is an error to list a `godebug` with an unrecognized setting. (Toolchains older than Go 1.23 reject all `godebug` lines, since they do not -understand `godebug` at all.) +understand `godebug` at all.) When a workspace is in use, `godebug` +directives in `go.mod` files are ignored, and `go.work` will be consulted +for `godebug` directives instead. The defaults from the `go` and `godebug` lines apply to all main packages that are built. For more fine-grained control,