]> Cypherpunks repositories - gostls13.git/commitdiff
doc: update godebug doc to clarify godebug directive in workspace
authorMichael Matloob <matloob@golang.org>
Wed, 5 Mar 2025 20:20:46 +0000 (15:20 -0500)
committerMichael Matloob <matloob@golang.org>
Thu, 6 Mar 2025 16:08:42 +0000 (08:08 -0800)
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
doc/godebug.md

index c1ef9115a0234ff67b2d2cb08455ac2fb1647004..4325b958204f19da690735f351a4b87bad7a09e7 100644 (file)
@@ -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,