Change information
Commit message:
cmd/go: refactor usage of `workFilePath`
This commit refactors usage of the global variable `workFilePath` to
the global LoaderState field of the same name.
This commit is part of the overall effort to eliminate global
modloader state.
[git-generate]
cd src/cmd/go/internal/modload
rf 'ex { workFilePath -> LoaderState.workFilePath }'
rf 'add State.requirements \
// Set to the path to the go.work file, or "" if workspace mode is\
// disabled'
rf 'rm workFilePath'
Change-Id: I53cdbc3cc619914421513db74a74a04ab10b3e33
Files:
- M src/cmd/go/internal/modload/buildlist.go
- M src/cmd/go/internal/modload/init.go
- M src/cmd/go/internal/modload/modfile.go
Change size: S
Delta: 3 files changed, 17 insertions(+), 20 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Michael Matloob, +1 by Michael Matloob
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI