diff options
| author | Ian Alexander <jitsu@google.com> | 2025-08-20 21:21:41 -0400 |
|---|---|---|
| committer | Ian Alexander <jitsu@google.com> | 2025-10-07 16:10:28 -0700 |
| commit | 78b43037dc20b9f5d624260b50e15bfa8956e4d5 (patch) | |
| tree | aaef1a7efef04909780b64960bd8ba41b5c3ca08 /test/codegen | |
| parent | bb1ca7ae81ea8ca49a2773ace8ccff8fbc7f4dfd (diff) | |
| download | go-78b43037dc20b9f5d624260b50e15bfa8956e4d5.tar.xz | |
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
Reviewed-on: https://go-review.googlesource.com/c/go/+/698062
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions
