mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Fix test-mods to allow for pinning version from k8s.io
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
87c7ea81f0
commit
dd2f652618
@ -1,7 +1,7 @@
|
||||
#!/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)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user