upup: set GO15VENDOREXPERIMENT, update docs for 1.5

We set GO15VENDOREXPERIMENT in the makefile.  It doesn't appear to
actually work for go code generation, so there's a note in the README
that you really want to be using 1.6 for development.

Fixes #97
This commit is contained in:
Justin Santa Barbara 2016-06-11 23:01:49 -04:00
parent ff48515e2c
commit cba6559092
2 changed files with 14 additions and 5 deletions

View File

@ -1,11 +1,15 @@
gocode: godeps
go install k8s.io/kube-deploy/upup/cmd/...
GO15VENDOREXPERIMENT=1 go install k8s.io/kube-deploy/upup/cmd/...
codegen:
go install k8s.io/kube-deploy/upup/tools/generators/...
go generate k8s.io/kube-deploy/upup/pkg/fi/cloudup/awstasks
go generate k8s.io/kube-deploy/upup/pkg/fi/cloudup/gcetasks
go generate k8s.io/kube-deploy/upup/pkg/fi/fitasks
GO15VENDOREXPERIMENT=1 go install k8s.io/kube-deploy/upup/tools/generators/...
GO15VENDOREXPERIMENT=1 go generate k8s.io/kube-deploy/upup/pkg/fi/cloudup/awstasks
GO15VENDOREXPERIMENT=1 go generate k8s.io/kube-deploy/upup/pkg/fi/cloudup/gcetasks
GO15VENDOREXPERIMENT=1 go generate k8s.io/kube-deploy/upup/pkg/fi/fitasks
test:
GO15VENDOREXPERIMENT=1 go test k8s.io/kube-deploy/upup/cmd/...
GO15VENDOREXPERIMENT=1 go test k8s.io/kube-deploy/upup/pkg/...
godeps:
# I think strip-vendor is the workaround for 25572

View File

@ -24,6 +24,11 @@ cd ${GOPATH}/src/k8s.io/kube-deploy/upup
make
```
(Note that the code uses the relatively new Go vendoring, so building requires Go 1.6 or later,
or you must export GO15VENDOREXPERIMENT=1 when building with Go 1.5. The makefile sets
GO15VENDOREXPERIMENT for you. Go code generation does not honor the env var in 1.5, so for development
you should use Go 1.6 or later)
## Bringing up a cluster on AWS
* Ensure you have a DNS hosted zone set up in Route 53, e.g. myzone.com