vmware-tanzu-labs / cf-mgmt

Go automation for managing orgs, spaces that can be driven from concourse pipeline and Git managed metadata
Apache License 2.0
120 stars 67 forks source link

Code Generation steps are not complete #76

Closed punalpatel closed 6 years ago

punalpatel commented 6 years ago

$ go get -u github.com/jteeuwen/go-bindata $ go get -u github.com/golang/mock/mockgen $ go get -u github.com/maxbrunsfeld/counterfeiter $ go generate $(glide nv) 2017/12/14 17:24:30 Loading input failed: gob: name not registered for interface: "github.com/pivotalservices/cf-mgmt/vendor/github.com/golang/mock/mockgen/model.PredeclaredType" cloudcontroller/definition.go:3: running "mockgen": exit status 1 Wrote FakeManager to configfakes/fake_manager.go generated/definition.go:3: running "go-bindata": exec: "go-bindata": executable file not found in $PATH 2017/12/14 17:24:31 Loading input failed: gob: name not registered for interface: "github.com/pivotalservices/cf-mgmt/vendor/github.com/golang/mock/mockgen/model.PredeclaredType" ldap/definition.go:3: running "mockgen": exit status 1 2017/12/14 17:24:33 Loading input failed: gob: name not registered for interface: "github.com/pivotalservices/cf-mgmt/vendor/github.com/golang/mock/mockgen/model.PredeclaredType" organization/definition.go:3: running "mockgen": exit status 1 2017/12/14 17:24:35 Loading input failed: gob: name not registered for interface: "github.com/pivotalservices/cf-mgmt/vendor/github.com/golang/mock/mockgen/model.PredeclaredType" securitygroup/definition.go:3: running "mockgen": exit status 1 2017/12/14 17:24:36 Loading input failed: gob: name not registered for interface: "github.com/pivotalservices/cf-mgmt/vendor/github.com/golang/mock/mockgen/model.PredeclaredType" uaac/definition.go:3: running "mockgen": exit status 1 $

calebwashburn commented 6 years ago

Appears there is an new version of mockgen that was recently released that breaks this. Added script to rebuild mockgen on a prior commit to fix this. Plans are to move away from mockgen and use counterfeiter instead as there have been several issues discovered with mockgen.