IT Panda Blog

Life is fantastic


  • Home

  • Tags

  • Categories

  • Archives

Go问题列表

Posted on 2020-05-04 In go

无法安装bee

1
parsing go.mod: unexpected module path "github.com/go-delve/delve"

解决办法 GO111MODULE=off go get -u github.com/beego/bee

k8s client-go 依赖问题

1
2
../../../../pkg/mod/k8s.io/client-go@v11.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:29:15: scheme.AddConversionFuncs undefined (type *runtime.Scheme has no field or method AddConversionFuncs)
../../../../pkg/mod/k8s.io/client-go@v11.0.0+incompatible/rest/request.go:598:31: not enough arguments in call to watch.NewStreamWatcher

这是 client-go 与本地 k8s 不兼容问题,可以手动下载安装 client-go,注意使用你本地 k8s 版本

同时,也需要处理下 api 依赖….

1
2
3
4
cd {yourgopath}/pkg/mod/k8s.io/
sudo rm -rf ./apimachinery@*
sudo rm -rf ./api@*
go mod tidy

也许是刚接触go,目前感觉go的包管理有点那啥… 并没有maven之类来的舒服

go
Python 项目打包,上传至Artifactory,并下载安装
  • Table of Contents
  • Overview
Rex

Rex

25 posts
26 categories
49 tags
Links
  • GitHub
  1. 1. 无法安装bee
  2. 2. k8s client-go 依赖问题
© 2019 – 2020 作者拥有版权,转载请注明出处