你好,当shyiko安装kubesec时,我收到了这个错误,按照这个指南,我在我的m1中安装kubesec二进制文件,它失败了。请协助
brew install shyiko/kubesec/kubesec
=> Installing kubesec from shyiko/kubesec
==> Installing dependencies for shyiko/kubesec/kubesec: go
==> Installing shyiko/kubesec/kubesec dependency: go
==> Pouring go--1.19.1.arm64_big_sur.bottle.tar.gz
/opt/homebrew/Cellar/go/1.19.1: 12,436 files, 629.0MB
==> Installing shyiko/kubesec/kubesec
==> make fetch
Last 15 lines from /Users/user/Library/Logs/Homebrew/kubesec/01.make:
fatal: not a git repository (or any of the parent directories): .git
go get \
github.com/mitchellh/gox \
github.com/Masterminds/glide \
github.com/modocache/gover \
github.com/aktau/github-release && \
glide install
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
make: *** [fetch] Error 1
Do not report this issue to Homebrew/brew or Homebrew/core!
[1]: https://github.com/shyiko/kubesec发布于 2022-10-11 09:12:58
我设法修复了这个
macOS
curl -sSL https://github.com/willyguggenheim/kubesec/releases/download/0.9.2/kubesec-0.9.2-darwin-amd64 \
-o kubesec && chmod a+x kubesec && sudo mv kubesec /usr/local/bin/ 验证PGP签名(可选但建议):
curl -sSL https://github.com/willyguggenheim/kubesec/releases/download/0.9.2/kubesec-0.9.2-darwin-amd64.asc \
-o kubesec.asc
curl -sS https://keybase.io/shyiko/pgp_keys.asc | gpg --import
gpg --verify kubesec.asc /usr/local/bin/kubesec蒙特利
GO111MODULE="on" go install github.com/willyguggenheim/kubesec@latest
chmod a+x $GOPATH/bin/kubesec
mv $GOPATH/bin/kubesec /usr/local/bin/ https://stackoverflow.com/questions/73804768
复制相似问题