执行时 go get -u k8s.io/test-infra/kubetest
报错:
k8s.io/test-infra/kubetest imports
cloud.google.com/go/storage: ambiguous import: found package cloud.google.com/go/storage in multiple modules:
cloud.google.com/go v0.102.0 (/home/liufarong.666/go/pkg/mod/cloud.google.com/go@v0.38.0/storage)
cloud.google.com/go/storage v1.22.1 (/home/liufarong.666/go/pkg/mod/cloud.google.com/go/storage@v1.22.1)
解决方案:
网上说什么该mod.go,做replace啥的没看懂
直接找到则两个文件,先全都删掉,再安装就ok啦