mirror of
https://github.com/rancher/types.git
synced 2025-08-02 05:11:59 +00:00
Update README for usage with go modules
This commit is contained in:
parent
b4a31197d6
commit
df6744b140
11
README.md
11
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user