1env TESTGO_VERSION=go1.22.0 2 3! go mod tidy -go=1.21 4stderr '^go: example.net/a@v0.1.0 requires go@1.22, but 1.21 is requested$' 5 6-- go.mod -- 7module example 8 9go 1.22 10 11require example.net/a v0.1.0 12 13replace example.net/a v0.1.0 => ./a 14-- example.go -- 15package example 16 17import "example.net/a" 18-- a/go.mod -- 19module example.net/a 20 21go 1.22 22-- a/a.go -- 23package a