Skip to content

Commit

Permalink
[build.tools] Fix where python proto stub is copied to. (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
manugarg committed Mar 21, 2024
1 parent b0f610d commit c70d29b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/gen_pb_go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ find ${MODULE} -type d | \
done

${protoc_path} --python_out=. ${MODULE}/probes/external/proto/server.proto
mkdir -p ${MODULE}/probes/external/serverutils/py
mv github/com/cloudprober/cloudprober/probes/external/proto/server_pb2.py ${MODULE}/probes/external/serverutils/py
PY_SRC_DIR=${MODULE}/probes/external/serverutils/py/src/cloudprober/external
mkdir -p ${PY_SRC_DIR}
mv github/com/cloudprober/cloudprober/probes/external/proto/server_pb2.py ${PY_SRC_DIR}

# Copy generated files back to their original location.
find ${MODULE} \( -name *.pb.go -o -name *proto_gen.cue -o -name *.py \) | \
Expand Down

0 comments on commit c70d29b

Please sign in to comment.