Update INSTALL.md

This commit is contained in:
Jeff Regan
2019-09-26 17:34:53 -07:00
committed by GitHub
parent d89b448c74
commit 98d1893057

View File

@@ -21,20 +21,16 @@ mv kustomize_*_${opsys}_amd64 kustomize
chmod u+x kustomize
```
## Install from the HEAD of master branch
## Get and install source for a particular release
Requires [Go] v1.12 or higher:
<!-- @installkustomize @testAgainstLatestRelease -->
For example
```
go install sigs.k8s.io/kustomize/v3/cmd/kustomize
# 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
```
> With [Go v1.12](https://golang.org/doc/go1.12#modules), prefix the above command with `GO111MODULE=on`, e.g.
> ```
> GO111MODULE=on go install sigs.k8s.io/kustomize/v3/cmd/kustomize
> ```
> This shouldn't be necessary with [Go v1.13](https://golang.org/doc/go1.13#modules).
Use of `GO111MODULE=on` shouldn't be necessary
with [Go v1.13](https://golang.org/doc/go1.13#modules).
### Other methods