diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 6de6eaceb..74ff4832e 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -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: - - +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