aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modload/buildlist.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2021-04-09 00:13:50 -0400
committerBryan C. Mills <bcmills@google.com>2021-04-09 13:19:10 +0000
commitdcc801ef815263eae7f0780a0bbc2f2e753599b0 (patch)
treef82eb39f6811a829f5b8cd8706839e9f5e6cbc0c /src/cmd/go/internal/modload/buildlist.go
parentc432917061f6dc9e5e9bfa0745991f7291be794e (diff)
downloadgo-dcc801ef815263eae7f0780a0bbc2f2e753599b0.tar.gz
go-dcc801ef815263eae7f0780a0bbc2f2e753599b0.zip
cmd/go/internal/modload: actually set the depth field passed to newRequirements
This was missed in CL 308515, and didn't show up in testing because so few codepaths (and tests) actually depend on this behavior so far. For #36460 Change-Id: I98b1962eb64d371884e15a3356c95f7ea80c7d21 Reviewed-on: https://go-review.googlesource.com/c/go/+/308810 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/cmd/go/internal/modload/buildlist.go')
-rw-r--r--src/cmd/go/internal/modload/buildlist.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/go/internal/modload/buildlist.go b/src/cmd/go/internal/modload/buildlist.go
index 24b2585a55..3fbe3c6700 100644
--- a/src/cmd/go/internal/modload/buildlist.go
+++ b/src/cmd/go/internal/modload/buildlist.go
@@ -105,6 +105,7 @@ func newRequirements(depth modDepth, rootModules []module.Version, direct map[st
}
rs := &Requirements{
+ depth: depth,
rootModules: rootModules,
maxRootVersion: make(map[string]string, len(rootModules)),
direct: direct,