mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-18 13:22:17 +00:00
psuedo modules will contain modules copied from k8s where we cannot depend directly on the k8s modules
17 lines
294 B
Bash
Executable File
17 lines
294 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o xtrace
|
|
|
|
for item in api apimachinery client-go
|
|
do
|
|
if find pseudo -name 'go.*' | xargs grep "k8s.io/${item}" ; then
|
|
echo "forbidden deps"
|
|
exit 1
|
|
fi
|
|
if find pseudo -name '*.go' | xargs grep "k8s.io/${item}" ; then
|
|
echo "forbidden deps"
|
|
exit 1
|
|
fi
|
|
done
|
|
|