I made a brief effort to create Go bindings for cryptohome's rpc.proto file in system_api so that some Tast code could call cryptohomed over D-Bus instead of running the cryptohome command, but I kept getting errors like this:
>>> Installing (1 of 1) chromeos-base/system_api-9999::chromiumos to /build/caroline/
* Running stacked hooks for pre_pkg_preinst
* wrap_old_config_scripts ... [ ok ]
[/build/caroline/usr/lib/gopath/src/chromiumos/system_api/cryptohome/rpc.pb.go:61:8: local import "." in non-local package]
If I'm remembering correctly, it was objecting to a line like this in the generated code:
import cryptohome1 "."
I think that all of the existing system_api .proto files that we generate Go bindings for are using proto3. rpc.proto is still proto2, so I suspect that that may be related to the error. Switching the files to proto3 felt a bit more involved than I was up for, so I wasn't able to confirm that.
Comment 1 by smbar...@chromium.org
, Nov 26