mirror of https://github.com/golang/go.git
address review issue: s/added to/listed in
This commit is contained in:
parent
abd77415d8
commit
ec97646f22
|
|
@ -719,7 +719,7 @@ func LoadModFile(ctx context.Context) *Requirements {
|
|||
data, f, err := ReadModFile(gomod, fixVersion(ctx, &fixed))
|
||||
if err != nil {
|
||||
if inWorkspaceMode() {
|
||||
base.Fatalf("go: cannot load module added to go.work file: %v", err)
|
||||
base.Fatalf("go: cannot load module listed in go.work file: %v", err)
|
||||
} else {
|
||||
base.Fatalf("go: %v", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
! go list .
|
||||
stderr '^go: cannot load module added to go\.work file: open .+go\.mod: no such file or directory$'
|
||||
stderr '^go: cannot load module listed in go\.work file: open .+go\.mod: no such file or directory$'
|
||||
|
||||
-- go.work --
|
||||
use ./y
|
||||
|
|
|
|||
Loading…
Reference in New Issue