通过 gcloud CLI 安装后无法 运行 Cloud Build Local
Unable to run Cloud Build Local after installing it via gcloud CLI
我想 运行 Google 在本地进行云构建。根据他们的文档,我使用以下方式安装它:
gcloud components install cloud-build-local
收到成功消息并重新安装说组件是最新的。
但是,当我根据他们的文档尝试调用 cloud-build-local --help
时,我收到此错误:command not found: cloud-build-local
with both Bash and Zsh.
我已经尝试了 source ~/.bashrc
、source ~/.zshrc
和 gcloud cloud-build-local --help
(可能是命名空间的问题),但均无济于事。
找到解决方法 - 请参阅 GitHub 问题,其中也有一个有用的要点:
由于我使用 Homebrew 在 MacOS 上安装 Google Cloud SDK,因此我在此处找到了云组件的二进制文件:/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin
。在父目录中,您应该为 Bash 和 Zsh 找到两组 .inc
文件,用于自动完成和更新您的 PATH。
我想 运行 Google 在本地进行云构建。根据他们的文档,我使用以下方式安装它:
gcloud components install cloud-build-local
收到成功消息并重新安装说组件是最新的。
但是,当我根据他们的文档尝试调用 cloud-build-local --help
时,我收到此错误:command not found: cloud-build-local
with both Bash and Zsh.
我已经尝试了 source ~/.bashrc
、source ~/.zshrc
和 gcloud cloud-build-local --help
(可能是命名空间的问题),但均无济于事。
找到解决方法 - 请参阅 GitHub 问题,其中也有一个有用的要点:
由于我使用 Homebrew 在 MacOS 上安装 Google Cloud SDK,因此我在此处找到了云组件的二进制文件:/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin
。在父目录中,您应该为 Bash 和 Zsh 找到两组 .inc
文件,用于自动完成和更新您的 PATH。