[go] cmd/go: make the package loader a part of the module loader

0 views
Skip to first unread message

Michael Matloob (Gerrit)

unread,
12:35 PM (6 hours ago) 12:35 PM
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Ian Alexander, Go LUCI, Michael Matloob, golang-co...@googlegroups.com

Michael Matloob submitted the change

Change information

Commit message:
cmd/go: make the package loader a part of the module loader

This is a part of the project to remove global state in the module
loader. Before this change, the packageLoader was stored in a global
field "loaded" which meant that even though the module loader is no
longer global, part of the module loader still depended on global state.
This change will make progress to the point where we can potentially
have multiple module loaders in the same go/command execution.
Change-Id: If4963a8a9d0e04960cf5424e496114276a6a6964
Reviewed-by: Ian Alexander <ji...@google.com>
Reviewed-by: Michael Matloob <mat...@google.com>
Files:
  • M src/cmd/go/internal/modcmd/vendor.go
  • M src/cmd/go/internal/modcmd/why.go
  • M src/cmd/go/internal/modget/get.go
  • M src/cmd/go/internal/modload/build.go
  • M src/cmd/go/internal/modload/init.go
  • M src/cmd/go/internal/modload/load.go
  • M src/cmd/go/internal/workcmd/sync.go
Change size: M
Delta: 7 files changed, 37 insertions(+), 37 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Ian Alexander, +1 by Michael Matloob
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: If4963a8a9d0e04960cf5424e496114276a6a6964
Gerrit-Change-Number: 753220
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Matloob <mat...@golang.org>
Gerrit-Reviewer: Ian Alexander <ji...@google.com>
Gerrit-Reviewer: Michael Matloob <mat...@golang.org>
Gerrit-Reviewer: Michael Matloob <mat...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages