Skip to content

Commit

Permalink
fix(fivetran_sdk): update the go script
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-bhargavpatel committed Jan 28, 2025
1 parent 8b22c26 commit 59ecd8d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 3 additions & 4 deletions v1_examples/connector/golang/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
mkdir proto
./scripts/copy_protos.sh
./scripts/compile_protos.sh
go build golang_connector/main.go
copy_protos.sh
compile_protos.sh
go build ../golang_connector/main.go
6 changes: 3 additions & 3 deletions v1_examples/connector/golang/scripts/compile_protos.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion v1_examples/connector/golang/scripts/copy_protos.sh
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
cp ../../*.proto proto/
#!/bin/bash
mkdir ../proto
cp ../../../*.proto ../proto/

0 comments on commit 59ecd8d

Please sign in to comment.