Commit da7a33f
committed
proto: Add support for Process.User's Any
To avoid:
go run ./example.go
go/config.pb.go:26:8: cannot find package "google/protobuf" in any of:
/usr/lib/go/src/google/protobuf (from $GOROOT)
/home/wking/.local/lib/go/src/google/protobuf (from $GOPATH)
Makefile:31: recipe for target 'example' failed
The Dockerfile changes will compile Google's any.proto to Go and
install it in the GOPATH. Unfortunately, the jsonpb rendering isn't
quite right, since it's spitting out:
"user": {
"type_url": "oci.LinuxUser",
"value": "qAYBsAYBuAYFuAYG"
},
When it should be spitting out [1]:
"user": {
"@type": "type.googleapis.com/oci.LinuxUser",
"uid": 1,
"gid": 1,
"additionalGids": [
5,
6
]
},
[1]: https://developers.google.com/protocol-buffers/docs/proto3#json
Signed-off-by: W. Trevor King <[email protected]>1 parent 459cecb commit da7a33f
2 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
24 | 36 | | |
25 | 37 | | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
29 | | - | |
| 41 | + | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
| |||
0 commit comments