mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
dd2f652618
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
11 lines
281 B
Bash
Executable File
11 lines
281 B
Bash
Executable File
#!/bin/bash
|
|
set -e -x
|
|
|
|
res=$(go mod edit --json | jq -r '.Replace[] | select(.Old.Path | contains("k8s.io/")) | .New.Path' | grep -vE '^(k8s.io/|github.com/k3s-io/)' | wc -l)
|
|
if [ $res -gt 0 ];then
|
|
echo "Incorrect kubernetes replacement fork in go.mod"
|
|
exit 1
|
|
else
|
|
exit 0
|
|
fi
|