commit | f49a386349721336e9248acb5d67adb7f3a12939 | [log] [tgz] |
---|---|---|
author | Allen Li <ayatane@google.com> | Tue May 07 21:02:13 2019 |
committer | chrome-bot <chrome-bot@chromium.org> | Wed May 08 17:22:49 2019 |
tree | 46531415e37d9c7e0e9c1cbf02a64474d2d1833a | |
parent | 47a7495453815b77df3f2af6d716fbeff41f308b [diff] |
Remove upsync script BUG=chromium:951053 TEST=None Change-Id: I85be18c6887496e495df1e5ad8a32c8d2498467e Reviewed-on: https://chromium-review.googlesource.com/1599415 Commit-Ready: Allen Li <ayatane@chromium.org> Tested-by: Allen Li <ayatane@chromium.org> Reviewed-by: Xixuan Wu <xixuan@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