From df6744b14047e8379f6f89381f06778e42a1a93a Mon Sep 17 00:00:00 2001 From: Dax McDonald Date: Wed, 21 Aug 2019 14:47:47 -0700 Subject: [PATCH] Update README for usage with go modules --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 2a7d0ab4..fa0d74a5 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,17 @@ API Types for Rancher 2.0 Run `go generate` in the root of the project +### Running code generation after go modules + +The code generation code still depends on the GOPATH. +To generate types you need to update vendor. + +1. Update go.mod for what you need +2. Run `GO111MODULE=on go mod vendor` +3. Export your gopath (export GOPATH=types_go_path_dir) +4. Run `go generate` +5. Unset your `GOPATH` + ## License Copyright (c) 2014-2017 [Rancher Labs, Inc.](http://rancher.com)