]> Cypherpunks repositories - gostls13.git/commit
cmd/go: enable lazy loading
authorBryan C. Mills <bcmills@google.com>
Wed, 28 Apr 2021 16:57:38 +0000 (12:57 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 30 Apr 2021 18:05:18 +0000 (18:05 +0000)
commit9a81702b974f9d6e5569f069baaad58a0829c63a
tree2f11395da6a0710b25fc997c478ad60988b2e1b9
parent2bd3e48055cc36306d1ce5abc96685ada4e3c836
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>
16 files changed:
doc/go1.17.html
src/cmd/go.mod
src/cmd/go/internal/modload/modfile.go
src/cmd/go/testdata/script/mod_all.txt
src/cmd/go/testdata/script/mod_get_missing_ziphash.txt
src/cmd/go/testdata/script/mod_install_pkg_version.txt
src/cmd/go/testdata/script/mod_lazy_downgrade.txt
src/cmd/go/testdata/script/mod_lazy_import_allmod.txt
src/cmd/go/testdata/script/mod_lazy_new_import.txt
src/cmd/go/testdata/script/mod_lazy_test_horizon.txt
src/cmd/go/testdata/script/mod_lazy_test_of_test_dep.txt
src/cmd/go/testdata/script/mod_list_sums.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_run_pkg_version.txt
src/cmd/go/testdata/script/mod_tidy_convergence.txt
src/cmd/go/testdata/script/mod_tidy_convergence_loop.txt
src/cmd/vendor/modules.txt