Skip to content

Commit 54e948c

Browse files
committed
Verify apimachinery protobuf
1 parent e606f51 commit 54e948c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hack/verify-generated-protobuf.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
2323

2424
kube::golang::setup_env
2525

26-
APIROOTS=$(git grep --files-with-matches -e '// +k8s:protobuf-gen=package' cmd pkg staging | xargs -n 1 dirname | sort | uniq)
26+
APIROOTS=$({
27+
# gather the packages explicitly requesting generation
28+
git grep --files-with-matches -e '// +k8s:protobuf-gen=package' cmd pkg staging | xargs -n 1 dirname
29+
# add the root apimachinery pkg containing implicitly generated files (--apimachinery-packages)
30+
echo staging/src/k8s.io/apimachinery/pkg
31+
} | sort | uniq)
2732

2833
_tmp="${KUBE_ROOT}/_tmp"
2934

0 commit comments

Comments
 (0)