Skip to content

Commit 2add2b3

Browse files
committed
Adapt protobuf generation pipeline to ssl-go-tools
1 parent 8fc440a commit 2add2b3

17 files changed

+24
-18
lines changed

generateProto.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22

33
# Fail on errors
44
set -e
5+
# Print commands
6+
set -x
57

68
# Update to latest protobuf compiler
7-
go get -u github.com/golang/protobuf/protoc-gen-go
9+
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
810

9-
for pkgDir in ./proto/*; do
10-
# compile protobuf files in current directory
11-
protoc -I"$pkgDir" \
12-
-I"${GOPATH}/src" \
13-
--go_out="$GOPATH/src" \
14-
"${pkgDir}"/*.proto
15-
done
11+
# Generate all protobuf code
12+
protoc -I"./proto" -I"$GOPATH/src" --go_out="$GOPATH/src" proto/*.proto

pkg/tracked/ssl_gc_common.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/tracked/ssl_gc_geometry.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/tracked/ssl_vision_detection_tracked.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/tracked/ssl_vision_wrapper_tracked.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/vision/ssl_vision_detection.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/vision/ssl_vision_geometry.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/vision/ssl_vision_wrapper.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/visualization/ssl_visualization.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
syntax = "proto2";
2+
23
option go_package = "github.com/RoboCup-SSL/ssl-vision-client/pkg/tracked";
34

45
// Team is either blue or yellow

0 commit comments

Comments
 (0)