From 98d1893057b35efc3aae759bfd525c6a21419a8b Mon Sep 17 00:00:00 2001 From: Jeff Regan Date: Thu, 26 Sep 2019 17:34:53 -0700 Subject: [PATCH] Update INSTALL.md --- docs/INSTALL.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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