mirror of https://github.com/k3s-io/k3s
10 lines
251 B
Plaintext
10 lines
251 B
Plaintext
|
#!/bin/bash
|
||
|
set -e -x
|
||
|
|
||
|
res=$(go mod edit --json | jq '.Replace[] | select(.Old.Path | contains("k8s.io/")) | .New.Path' | grep -v k3s-io | wc -l)
|
||
|
if [ $res -gt 0 ];then
|
||
|
echo "Incorrect kubernetes replacement fork in go.mod"
|
||
|
exit 1
|
||
|
else
|
||
|
exit 0
|
||
|
fi
|