mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
70dcc78871
commit
3aef716168
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user