diff options
| author | Ian Alexander <jitsu@google.com> | 2025-10-03 00:31:26 -0400 |
|---|---|---|
| committer | Ian Alexander <jitsu@google.com> | 2025-10-24 07:25:52 -0700 |
| commit | c18fa69e528f1679cd9b4c1c04a95f048c68000e (patch) | |
| tree | 3680e8ebdd79eb62847d86ea9c698a876b887f19 /src/encoding/json | |
| parent | 296ecc918d6688b5eeb9abe32d919b0aaa76d798 (diff) | |
| download | go-c18fa69e528f1679cd9b4c1c04a95f048c68000e.tar.xz | |
cmd/go: make ErrNoModRoot work with local state
This change reworks the sentinel error value ErrNoModRoot and the type
noMainModulesError so that we can determine the appropriate error
message to display based on the loader state without depending on the
state directly.
This commit is part of the overall effort to eliminate global
modloader state.
Change-Id: I64de433faca96ed90fad4c153766c50575a72157
Reviewed-on: https://go-review.googlesource.com/c/go/+/711120
Reviewed-by: Michael Matloob <matloob@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions
