Skip to content

Commit ec97646

Browse files
committed
address review issue: s/added to/listed in
1 parent abd7741 commit ec97646

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/go/internal/modload/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ func LoadModFile(ctx context.Context) *Requirements {
719719
data, f, err := ReadModFile(gomod, fixVersion(ctx, &fixed))
720720
if err != nil {
721721
if inWorkspaceMode() {
722-
base.Fatalf("go: cannot load module added to go.work file: %v", err)
722+
base.Fatalf("go: cannot load module listed in go.work file: %v", err)
723723
} else {
724724
base.Fatalf("go: %v", err)
725725
}

src/cmd/go/testdata/script/work_use_issue55952.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! go list .
2-
stderr '^go: cannot load module added to go\.work file: open .+go\.mod: no such file or directory$'
2+
stderr '^go: cannot load module listed in go\.work file: open .+go\.mod: no such file or directory$'
33

44
-- go.work --
55
use ./y

0 commit comments

Comments
 (0)