diff options
Diffstat (limited to 'src/cmd/go/testdata/script/build_go122.txt')
-rw-r--r-- | src/cmd/go/testdata/script/build_go122.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/build_go122.txt b/src/cmd/go/testdata/script/build_go122.txt new file mode 100644 index 0000000..a17fc25 --- /dev/null +++ b/src/cmd/go/testdata/script/build_go122.txt @@ -0,0 +1,24 @@ +! go build +stderr '^m: cannot compile Go 1.22 code$' + +cd dep +! go build +stderr '^m: cannot compile Go 1.22 code$' + +-- go.mod -- +module m +go 1.22 + +-- p.go -- +package p + +-- dep/go.mod -- +module dep +go 1.19 +require m v1.0.0 +replace m v1.0.0 => ../ + +-- dep/p.go -- +package p + +import "m" |