When using go install with go 1.17, dependencies that require go1.18 or above get pulled in
$ go version
go version go1.17.13 darwin/amd64
$ go install sigs.k8s.io/kubetest2/...@latest
...
# k8s.io/apimachinery/pkg/util/validation/field
go/pkg/mod/k8s.io/apimachinery@v0.25.0/pkg/util/validation/field/errors.go:69:33: undefined: reflect.Pointer
note: module requires Go 1.19
# k8s.io/test-infra/prow/config/secret
...
go/pkg/mod/k8s.io/test-infra@v0.0.0-20220825213207-408f66a2a919/prow/config/secret/secret.go:34:32: too many errors
note: module requires Go 1.18
Note this doesn't happen with go 1.16 (used by kubernetes v1.22)
When using
go install
with go 1.17, dependencies that require go1.18 or above get pulled inNote this doesn't happen with go 1.16 (used by kubernetes v1.22)
/kind bug /sig testing /priority important-soon