commit | e14ccea7aff5ff5fae6b4063e901dcc2e5eedd85 | [log] [tgz] |
---|---|---|
author | Will Bradley <wbbradley@chromium.org> | Wed Oct 09 16:47:38 2019 |
committer | Will Bradley <wbbradley@chromium.org> | Fri Oct 11 19:32:22 2019 |
tree | 47a4deca137eff07a11c3c1aab47607d078a7c00 | |
parent | 8a42cac951ad336e232420bc34fa32c02f30db62 [diff] |
gitignore: fix incorrect glob pattern in .gitignore Certain search tools read .gitignore files in order to determine which files to ignore. (For example, ripgrep.) This ensures that those tools do not get thrown off by the glob format in the .gitignore, but maintains the as-intended behavior. BUG=None TEST=(touch asdf.pyc ; touch protos/asdf.pyc; git status --porcelain | grep asdf) && echo Fail Change-Id: I2474b614475a63bdcf108e9346746def62772c81 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/skylab_inventory/+/1849169 Tested-by: Will Bradley <wbbradley@chromium.org> Reviewed-by: Allen Li <ayatane@chromium.org> Commit-Queue: Will Bradley <wbbradley@chromium.org>
Inventory schema is stored as protobuf definitions in the proto/ directory. When you update these protobuf definitions, you must also update the generated python libraries for them.
You need the protoc compiler for this. On gLinux:
sudo apt-get install protobuf-compiler go get github.com/golang/protobuf/protoc-gen-go
Then, regenerate the libraries inside the chroot:
cros_sdk (cr) cd ~/trunk/infra/skylab_inventory/protos (cr) protoc --python_out=../venv/skylab_inventory/protos/ *.proto (cr) protoc --go_out=../go/src/chromiumos/infra/skylab/inventory/protos/ *.proto