Skip to content

Commit f7c4b53

Browse files
authored
fix third party import for python and js builds (#16)
1 parent e03e159 commit f7c4b53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ func buildPython() {
369369

370370
files := findProtos()
371371

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

413413
files := findProtos()
414414

415-
args := []string{"--js_out=import_style=commonjs:./build/js-cs3apis", "--grpc-web_out=import_style=commonjs,mode=grpcwebtext:./build/js-cs3apis/", "-I."}
415+
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"}
416416
args = append(args, files...)
417417
cmd := exec.Command("protoc", args...)
418418
run(cmd)

0 commit comments

Comments
 (0)