Skip to content

Commit 20481c5

Browse files
committed
Make it opt-in
Signed-off-by: John Howard <[email protected]>
1 parent 238d30f commit 20481c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/do_ci.sh

+5
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ case $CI_TARGET in
308308
if [[ "$GO_FILE" = *.validate.go ]]; then
309309
sed -i '1s;^;//go:build !disable_pgv\n;' "$OUTPUT_DIR/$(basename "$GO_FILE")"
310310
fi
311+
# TODO(https://github.com/planetscale/vtprotobuf/pull/122) do this directly in the generator.
312+
# Make vtprotobuf opt-in as it has some impact on binary sizes
313+
if [[ "$GO_FILE" = *.vtproto.pb.go ]]; then
314+
sed -i '1s;^;//go:build vtprotobuf\n;' "$OUTPUT_DIR/$(basename "$GO_FILE")"
315+
fi
311316
done <<< "$(find "$INPUT_DIR" -name "*.go")"
312317
done
313318
;;

0 commit comments

Comments
 (0)