执行 operator-sdk new matrix-operator 出现如下错误
centos@root:~/go/src/git.iflytek.com/container$ operator-sdk new matrix-operator
INFO[0000] Creating new Go operator 'matrix-operator'.
FATA[0000] Dependency manager "modules" has been selected but go modules are not active. Activate modules then run "operator-sdk new matrix-operator".
设置如下环境变量即可解决:
export GO111MODULE=on
参考网址:https://github.com/golang/go/wiki/Modules#how-to-install-and-activate-module-support
有疑问加站长微信联系(非本文作者)
本文来自:简书
感谢作者:BleyeShine
查看原文:Dependency manager "modules" has been selected but go modules are not active