mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Verify apimachinery protobuf
This commit is contained in:
@@ -23,7 +23,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
|
|||||||
|
|
||||||
kube::golang::setup_env
|
kube::golang::setup_env
|
||||||
|
|
||||||
APIROOTS=$(git grep --files-with-matches -e '// +k8s:protobuf-gen=package' cmd pkg staging | xargs -n 1 dirname | sort | uniq)
|
APIROOTS=$({
|
||||||
|
# gather the packages explicitly requesting generation
|
||||||
|
git grep --files-with-matches -e '// +k8s:protobuf-gen=package' cmd pkg staging | xargs -n 1 dirname
|
||||||
|
# add the root apimachinery pkg containing implicitly generated files (--apimachinery-packages)
|
||||||
|
echo staging/src/k8s.io/apimachinery/pkg
|
||||||
|
} | sort | uniq)
|
||||||
|
|
||||||
_tmp="${KUBE_ROOT}/_tmp"
|
_tmp="${KUBE_ROOT}/_tmp"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user