]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add GODEBUG tokens for debugging lazy module loading
authorBryan C. Mills <bcmills@google.com>
Fri, 30 Apr 2021 05:29:57 +0000 (01:29 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 30 Apr 2021 18:14:29 +0000 (18:14 +0000)
commitcbff713e68a1378713f1692cbfe13499106de7eb
tree9d99af5ffe196174e71dbb2ca366ab16406e11be
parenteb71887b99fa656ed627c9c1d41319b9198979c8
cmd/go: add GODEBUG tokens for debugging lazy module loading

GODEBUG=lazymod=log causes the go command to log a stack dump whenever
the full module graph is loaded in a lazy module.

GODEBUG=lazymod=strict does the same, but also terminates the command
with a nonzero exit code.

For #36460

Change-Id: Ia5a4c46069044bcc157b285f64c2392990d70bd0
Reviewed-on: https://go-review.googlesource.com/c/go/+/315411
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modload/buildlist.go