From e4c0e9df8b328395570948f1b3fa4dc3235432f0 Mon Sep 17 00:00:00 2001 From: Baokun Lee Date: Thu, 2 May 2019 18:34:04 +0800 Subject: [PATCH] cmd/go: make modconv test more robust Change-Id: I3e75201c56779eda1bcd725691c72d384da56f73 Reviewed-on: https://go-review.googlesource.com/c/go/+/174840 Run-TryBot: Baokun Lee TryBot-Result: Gobot Gobot Reviewed-by: Jay Conrod --- src/cmd/go/testdata/script/mod_init_dep.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/testdata/script/mod_init_dep.txt b/src/cmd/go/testdata/script/mod_init_dep.txt index 8cb3fa836e..755076eae8 100644 --- a/src/cmd/go/testdata/script/mod_init_dep.txt +++ b/src/cmd/go/testdata/script/mod_init_dep.txt @@ -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 -- 2.50.0