We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e606f51 commit 54e948cCopy full SHA for 54e948c
hack/verify-generated-protobuf.sh
@@ -23,7 +23,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
23
24
kube::golang::setup_env
25
26
-APIROOTS=$(git grep --files-with-matches -e '// +k8s:protobuf-gen=package' cmd pkg staging | xargs -n 1 dirname | sort | uniq)
+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)
32
33
_tmp="${KUBE_ROOT}/_tmp"
34
0 commit comments