Files
podman/pkg/api/grpcpb/build.sh
Lokesh Mandvekar 89efbf1dce pkg/api/grpcpb: auto-format generated protobuf files
Update build.sh to run gofumpt on generated .pb.go files, and apply
formatting to existing generated files. This fixes gofumpt and inamedparam
lint errors on macOS CI and ensures future regenerations will be
automatically formatted.

Signed-off-by: Lokesh Mandvekar <lsm5@linux.com>
2026-05-07 13:30:23 -04:00

16 lines
309 B
Bash
Executable File

#!/bin/bash
set -e
cd $(dirname ${BASH_SOURCE[0]})
TOP=../../..
PATH=${TOP}/test/tools/build:${PATH}
set -x
for proto in *.proto ; do
protoc \
--go_opt=paths=source_relative --go_out . \
--go-grpc_opt=paths=source_relative --go-grpc_out . \
${proto}
done
# Format generated files
gofumpt -w -- *.pb.go