aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thanawalla <samthanawalla@google.com>2024-09-18 20:32:50 +0000
committerSam Thanawalla <samthanawalla@google.com>2024-12-06 19:37:16 +0000
commite59d553512e1cfd46a7bfcef3dc0c05c86d231d8 (patch)
tree12938d0603111fd74487aaae2209273c524c1c68
parent99a06e9c9e6d3ccf0bbc319a482045dbec4619ba (diff)
downloadgo-x-website-e59d553512e1cfd46a7bfcef3dc0c05c86d231d8.tar.xz
_content/doc: document GODEBUG=toolchaintrace
For: golang/go#63939 Change-Id: I66ad4f766f9d62280247fa0787d20f7faac319fe Reviewed-on: https://go-review.googlesource.com/c/website/+/614237 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Matloob <matloob@golang.org>
-rw-r--r--_content/doc/toolchain.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/_content/doc/toolchain.md b/_content/doc/toolchain.md
index 0f586236..c0f14809 100644
--- a/_content/doc/toolchain.md
+++ b/_content/doc/toolchain.md
@@ -263,6 +263,10 @@ Running `go version` prints the selected Go toolchain's version
Running `GOTOOLCHAIN=local go version` prints the bundled Go toolchain's version.
+Starting in Go 1.24, you can trace the `go` command's toolchain selection process
+by adding `toolchaintrace=1` to the `GODEBUG` environment variable when you run the
+`go` command.
+
## Go toolchain switches {#switch}
For most commands, the workspace's `go.work` or the main module's `go.mod`