Skip to content

Commit

Permalink
Make it opt-in
Browse files Browse the repository at this point in the history
Signed-off-by: John Howard <howardjohn@google.com>
  • Loading branch information
howardjohn committed Jan 16, 2024
1 parent 238d30f commit 20481c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ case $CI_TARGET in
if [[ "$GO_FILE" = *.validate.go ]]; then
sed -i '1s;^;//go:build !disable_pgv\n;' "$OUTPUT_DIR/$(basename "$GO_FILE")"
fi
# TODO(https://github.com/planetscale/vtprotobuf/pull/122) do this directly in the generator.
# Make vtprotobuf opt-in as it has some impact on binary sizes
if [[ "$GO_FILE" = *.vtproto.pb.go ]]; then
sed -i '1s;^;//go:build vtprotobuf\n;' "$OUTPUT_DIR/$(basename "$GO_FILE")"
fi
done <<< "$(find "$INPUT_DIR" -name "*.go")"
done
;;
Expand Down

0 comments on commit 20481c5

Please sign in to comment.