summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/build_go122.txt
blob: a17fc253d97b550961012d0a577100b9e5ea6118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"