Skip to content

Commit

Permalink
protoc.sh: Run goimports -w after generating pb.go files
Browse files Browse the repository at this point in the history
So the pb.go files are in line with our coding standards.

Signed-off-by: Manuel Mendez <manny@packet.com>
  • Loading branch information
mmlb committed Sep 8, 2020
1 parent d11c761 commit 6f757ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions protos/protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ for proto in hardware packet template workflow; do
echo "Generating ${proto}.pb.go..."
protoc -I ./ -I ./common/ -I "$GOPATH"/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis "${proto}/${proto}.proto" --go_out=plugins=grpc:./ --grpc-gateway_out=logtostderr=true:.
done
goimports -w .

0 comments on commit 6f757ec

Please sign in to comment.