diff --git a/v1_examples/connector/golang/scripts/build.sh b/v1_examples/connector/golang/scripts/build.sh index 947a8b2..dd67913 100755 --- a/v1_examples/connector/golang/scripts/build.sh +++ b/v1_examples/connector/golang/scripts/build.sh @@ -1,5 +1,4 @@ #!/bin/bash -mkdir proto -./scripts/copy_protos.sh -./scripts/compile_protos.sh -go build golang_connector/main.go \ No newline at end of file +copy_protos.sh +compile_protos.sh +go build ../golang_connector/main.go \ No newline at end of file diff --git a/v1_examples/connector/golang/scripts/compile_protos.sh b/v1_examples/connector/golang/scripts/compile_protos.sh index ef651d6..e16094b 100755 --- a/v1_examples/connector/golang/scripts/compile_protos.sh +++ b/v1_examples/connector/golang/scripts/compile_protos.sh @@ -1,8 +1,8 @@ PATH="${PATH}:${HOME}/go/bin" protoc \ - --proto_path=proto \ - --go_out=proto \ + --proto_path=../proto \ + --go_out=../proto \ --go_opt=paths=source_relative \ - --go-grpc_out=proto \ + --go-grpc_out=../proto \ --go-grpc_opt=paths=source_relative \ common.proto \ connector_sdk.proto diff --git a/v1_examples/connector/golang/scripts/copy_protos.sh b/v1_examples/connector/golang/scripts/copy_protos.sh index 070905a..57849d0 100755 --- a/v1_examples/connector/golang/scripts/copy_protos.sh +++ b/v1_examples/connector/golang/scripts/copy_protos.sh @@ -1 +1,3 @@ -cp ../../*.proto proto/ +#!/bin/bash +mkdir ../proto +cp ../../../*.proto ../proto/