From 55941f57693b8ff9585552ef35b1dcb54dbc3c04 Mon Sep 17 00:00:00 2001 From: Jay Pipes Date: Sat, 14 Sep 2019 18:59:07 -0400 Subject: [PATCH 1/2] add note about GO111MODULE for source install It's not immediately obvious that in order to get the `go install sigs.k8s.io/kustomize/v3/cmd/kustomize` instructions to work successfully, you need to have `GO111MODULE=on` set, so I added a note about that. Issues #1536, #1314 --- docs/INSTALL.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index a80bee6c6..51cdb0388 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -30,6 +30,9 @@ Requires [Go] v1.12 or higher: go install sigs.k8s.io/kustomize/v3/cmd/kustomize ``` +**NOTE**: The above uses a versioned import path. You will need to run the +above with `GO111MODULE=on`. + ### Other methods #### macOS From aec820669519c3a8d015603f7725e445e4c19dbd Mon Sep 17 00:00:00 2001 From: Jeff Regan Date: Wed, 18 Sep 2019 11:33:18 -0700 Subject: [PATCH 2/2] Update INSTALL.md --- docs/INSTALL.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 51cdb0388..6de6eaceb 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -30,8 +30,11 @@ Requires [Go] v1.12 or higher: go install sigs.k8s.io/kustomize/v3/cmd/kustomize ``` -**NOTE**: The above uses a versioned import path. You will need to run the -above with `GO111MODULE=on`. +> 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). ### Other methods