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>
1 file changed
tree: 47a4deca137eff07a11c3c1aab47607d078a7c00
  1. bin/
  2. go/
  3. protos/
  4. venv/
  5. .gitignore
  6. COMMIT-QUEUE.ini
  7. OWNERS
  8. PRESUBMIT.cfg
  9. README.md
README.md

Skylab inventory

Updating inventory schema

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