]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: update error expectations in TestScript/mod_install_pkg_version
authorBryan C. Mills <bcmills@google.com>
Fri, 5 Mar 2021 02:09:17 +0000 (21:09 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 5 Mar 2021 02:30:31 +0000 (02:30 +0000)
This test was missed in CL 298650, and not caught by TryBots because
it is skipped it short mode (and we forgot to add longtest TryBots on
that CL).

Updates #44745

Change-Id: I696d01307dabf351b0e4735db0644f4e09c8e369
Reviewed-on: https://go-review.googlesource.com/c/go/+/298794
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

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

index e27ebc5cc5095d352329f5188066e1d954216f2a..6ed600ff7155fbecaafd5dd120c70fb1db3a674e 100644 (file)
@@ -59,9 +59,9 @@ rm $GOPATH/bin
 env GO111MODULE=on
 go mod download rsc.io/fortune@v1.0.0
 ! go install $GOPATH/pkg/mod/rsc.io/fortune@v1.0.0
-stderr '^go: cannot find main module; see ''go help modules''$'
+stderr '^go: go\.mod file not found in current directory or any parent directory; see ''go help modules''$'
 ! go install ../pkg/mod/rsc.io/fortune@v1.0.0
-stderr '^go: cannot find main module; see ''go help modules''$'
+stderr '^go: go\.mod file not found in current directory or any parent directory; see ''go help modules''$'
 mkdir tmp
 cd tmp
 go mod init tmp