有人可以建議如何在 Windows 上安裝 3.2.0 版本的 kustomize,好嗎?
我特別需要在 Windows 上使用 v3.2.0。我正在關注本教程。
源代碼:https ://github.com/kubernetes-sigs/kustomize/releases/tag/v3.2.0
我下載了 zip 檔案并安裝了 Go。但是,當我go install .在該 kustomize 檔案夾中運行時,我得到:no Go files in path/kustomize/..
也嘗試了上述教程,但同樣的錯誤..
編輯:嘗試通過https://github.com/kubernetes-sigs/kustomize/blob/master/hack/install_kustomize.sh ./install_kustomize.sh 3.2.0安裝我得到:Version v3.2.0 does not exist.
當我嘗試時,./install_kustomize.sh 3.2.1我得到:
tar (child): ./kustomize_v*_windows_amd64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
環境:Windows 10,在 GIT Bash 中執行
uj5u.com熱心網友回復:
你需要運行go install ./cmd/kustomize/. 那就是你想要構建 main.go 的地方。
這將在您的 %GOBIN% 中安裝可執行檔案。
您可能想要使用go build -o kustomize.exe ./cmd/kustomize/來獲取當前作業目錄中的可執行檔案。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/422116.html
標籤:
上一篇:如何避免gorm的堆疊溢位?
下一篇:將標簽應用于每個結構中的每個欄位
