diff options
author | Bryan C. Mills <bcmills@google.com> | 2021-04-28 12:57:38 -0400 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2021-04-30 18:05:18 +0000 |
commit | 9a81702b974f9d6e5569f069baaad58a0829c63a (patch) | |
tree | 2f11395da6a0710b25fc997c478ad60988b2e1b9 /src/cmd/go/internal/modload/modfile.go | |
parent | 2bd3e48055cc36306d1ce5abc96685ada4e3c836 (diff) | |
download | go-9a81702b974f9d6e5569f069baaad58a0829c63a.tar.gz go-9a81702b974f9d6e5569f069baaad58a0829c63a.zip |
cmd/go: enable lazy loading
This change activates the dormant “lazy loading” codepaths added in CL
265777 and its predecessors. Dependencies of modules that declare 'go
1.17' or higher are loaded lazily, and the dependencies in the go.mod
file maintain additional invariants to support more efficient lazy
loading for downstream dependent modules.
See https://golang.org/design/36460-lazy-module-loading for the
detailed design.
For #36460
Change-Id: Ic12ee7842aef9580357fcf8909d87654fcb2ad12
Reviewed-on: https://go-review.googlesource.com/c/go/+/314634
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>
Diffstat (limited to 'src/cmd/go/internal/modload/modfile.go')
-rw-r--r-- | src/cmd/go/internal/modload/modfile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/modload/modfile.go b/src/cmd/go/internal/modload/modfile.go index 7b92a2b7ab..cd08fa5859 100644 --- a/src/cmd/go/internal/modload/modfile.go +++ b/src/cmd/go/internal/modload/modfile.go @@ -41,7 +41,7 @@ const ( // go117EnableLazyLoading toggles whether lazy-loading code paths should be // active. It will be removed once the lazy loading implementation is stable // and well-tested. - go117EnableLazyLoading = false + go117EnableLazyLoading = true // go1117LazyTODO is a constant that exists only until lazy loading is // implemented. Its use indicates a condition that will need to change if the |