Update INSTALL.md

fix #1604
This commit is contained in:
Jeff Regan
2019-10-09 11:15:48 -07:00
committed by GitHub
parent f2ac5a2d0d
commit d0caea0ce1

View File

@@ -10,14 +10,21 @@ Or...
## Quickly curl the latest
https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv3.2.3/kustomize_kustomize.v3.2.3_linux_amd64
```
opsys=linux # or darwin, or windows
# pick one
opsys=darwin
opsys=windows
opsys=linux
curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/latest |\
grep browser_download |\
grep $opsys |\
cut -d '"' -f 4 |\
xargs curl -O -L
mv kustomize_*_${opsys}_amd64 kustomize
mv kustomize_kustomize\.v*_${opsys}_amd64 kustomize
chmod u+x kustomize
```
@@ -25,8 +32,8 @@ chmod u+x kustomize
For example
```
# Omit the @v3.2.1 to get the default for major version 3
GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v3@v3.2.1
# Omit the @v3.2.3 to get the default for major version 3
GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v3@v3.2.3
```
Use of `GO111MODULE=on` shouldn't be necessary