Only build non-test targets in hack/update-go-pbs.sh (#12101)

* Only build non-test targets in hack/update-go-pbs.sh

* run ./hack/update-go-pbs.sh

* Add ability to pass config to bazel

---------

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Preston Van Loon
2023-03-10 11:49:34 -06:00
committed by GitHub
parent 4528ea8d0d
commit a0ff5ff792
7 changed files with 146 additions and 136 deletions

View File

@@ -4,7 +4,7 @@
# Script to copy pb.go files from bazel build folder to appropriate location.
# Bazel builds to bazel-bin/... folder, script copies them back to original folder where .proto is.
bazel build //proto/...
bazel query 'attr(testonly, 0, //proto/...)' | xargs bazel build $@
file_list=()
while IFS= read -d $'\0' -r file; do