mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
18 lines
374 B
Bash
Executable File
18 lines
374 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o xtrace
|
|
|
|
for dir in api kustomize pseudo kyaml plugin cmd/config
|
|
do
|
|
for item in api apimachinery client-go
|
|
do
|
|
if find $dir -name 'go.*' | xargs grep "k8s.io/${item}" ; then
|
|
echo "forbidden deps"
|
|
exit 1
|
|
fi
|
|
if find $dir -name '*.go' | xargs grep "k8s.io/${item}" ; then
|
|
echo "forbidden deps"
|
|
exit 1
|
|
fi
|
|
done
|
|
done |