mirror of
https://github.com/containers/podman.git
synced 2026-07-12 00:05:01 -04:00
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>
16 lines
309 B
Bash
Executable File
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
|