Updating our ruby protobuf models for BBS - cloudfoundry/cloud_controller_ng GitHub Wiki
Install protobuf + ensure your local bbs directory is @ origin/master
$ brew install protobuf
$ cd $GOPATH/src/code.cloudfoundry.org/bbs/models
$ git co origin/master
$ git pull
$ z cloud_controller_ng
$ ./scripts/generate-bbs-models.sh
Be aware of changes that necessitate updating our codebase
For example, when you run ./scripts/generate-bbs-models.sh you might get this output:
~/workspace/capi-release/src/code.cloudfoundry.org/bbs/models ~/workspace/capi-release/src/cloud_controller_ng
protoc-gen-ruby2: program not found or is not executable
--ruby2_out: protoc-gen-ruby2: Plugin failed with status code 1.
~/workspace/capi-release/src/cloud_controller_ng
Here's how we solved this problem on 2019-01-17 avoiding dependency problems:
- Bring up the pipeline
- Click on the
bump-bbs-protosjob in thecapipipeline - Rerun
- Run
git pullagainst master in `cloud_controller_ng