安装kubetest报错 "ambiguous import: found package cloud.google.com/go/storage in multiple modules:"

执行时 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啦

posted @ 2022-06-14 15:20  Rogn  阅读(674)  评论(2编辑  收藏  举报