安装插件报错
>go get k8s.io /[email protected] go: cannot use path@version syntax in GOPATH mode
go: cannot use path@version syntax in GOPATH mode
查看环境变量
>go env
set GO111MODULE=off <===新特性已被关闭
set GOARCH=amd64
解决
>go env -w GO111MODULE=auto
成功安装
>go get github.com/go-logr/[email protected]
go: downloading github.com/go-logr/logr v0.1.0
|
请发表评论