Skip to content

Commit 6a8ec1f

Browse files
committed
For gnmi_ext.proto, run protoc with a path that starts with github.com/ (this is for reflections)
1 parent 4423cef commit 6a8ec1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compile_protos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ proto_imports_go=".:${protobufsrc}:${googleapis}:${GOPATH}/src"
2626
protoc -I=$proto_imports_go --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative,require_unimplemented_servers=false testing/fake/proto/fake.proto
2727
protoc -I=$proto_imports_go --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative,require_unimplemented_servers=false proto/gnmi/gnmi.proto
2828
protoc -I=$proto_imports_go --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative,require_unimplemented_servers=false proto/collector/collector.proto
29-
protoc -I=$proto_imports_go --go_out=. --go_opt=paths=source_relative proto/gnmi_ext/gnmi_ext.proto
29+
protoc -I=$proto_imports_go --go_out=${GOPATH}/src --go_opt=paths=source_relative github.com/openconfig/gnmi/proto/gnmi_ext/gnmi_ext.proto
3030
protoc -I=$proto_imports_go --go_out=. --go_opt=paths=source_relative proto/target/target.proto
3131

3232
# Python

0 commit comments

Comments
 (0)