]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: make modconv test more robust
authorBaokun Lee <nototon@gmail.com>
Thu, 2 May 2019 10:34:04 +0000 (18:34 +0800)
committerJay Conrod <jayconrod@google.com>
Thu, 2 May 2019 14:46:55 +0000 (14:46 +0000)
Change-Id: I3e75201c56779eda1bcd725691c72d384da56f73
Reviewed-on: https://go-review.googlesource.com/c/go/+/174840
Run-TryBot: Baokun Lee <nototon@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/testdata/script/mod_init_dep.txt

index 8cb3fa836ea48eeffda5d0323e573781f16ed65a..755076eae801b878f5aa092744956a8160ec3e47 100644 (file)
@@ -24,7 +24,7 @@ stdout 'rsc.io/sampler v1.0.0'
 # test dep replacement
 cd y
 go mod init
-cmp go.mod go.mod.replace
+cmpenv go.mod go.mod.replace
 
 -- go.mod1 --
 module x
@@ -50,7 +50,7 @@ import _ "z"
 -- y/go.mod.replace --
 module y
 
-go 1.13
+go $goversion
 
 replace z v1.0.0 => rsc.io/quote v1.0.0