Skip to content

Updating our ruby protobuf models for BBS

monamohebbi edited this page Jan 18, 2019 · 2 revisions

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:

  1. Bring up the pipeline
  2. Click on the bump-bbs-protos job in the capi pipeline
  3. Rerun
  4. Run git pull against master in `cloud_controller_ng
Clone this wiki locally