Skip to content

Commit

Permalink
fix third party import for python and js builds (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
butonic authored Oct 1, 2021
1 parent e03e159 commit f7c4b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func buildPython() {

files := findProtos()

args := []string{"-m", "grpc_tools.protoc", "--python_out=./build/python-cs3apis", "-I.", "--grpc_python_out=./build/python-cs3apis"}
args := []string{"-m", "grpc_tools.protoc", "--python_out=./build/python-cs3apis", "-I.", "-I./third_party", "--grpc_python_out=./build/python-cs3apis"}
args = append(args, files...)
cmd := exec.Command("python3", args...)
run(cmd)
Expand Down Expand Up @@ -412,7 +412,7 @@ func buildJS() {

files := findProtos()

args := []string{"--js_out=import_style=commonjs:./build/js-cs3apis", "--grpc-web_out=import_style=commonjs,mode=grpcwebtext:./build/js-cs3apis/", "-I."}
args := []string{"--js_out=import_style=commonjs:./build/js-cs3apis", "--grpc-web_out=import_style=commonjs,mode=grpcwebtext:./build/js-cs3apis/", "-I.", "-I./third_party"}
args = append(args, files...)
cmd := exec.Command("protoc", args...)
run(cmd)
Expand Down

0 comments on commit f7c4b53

Please sign in to comment.