diff --git a/mod.sh b/mod.sh deleted file mode 100755 index a9e6bfc..0000000 --- a/mod.sh +++ /dev/null @@ -1,20 +0,0 @@ -#! /bin/bash -set -euo pipefail - -VERSION=${1} -if [ -z "$VERSION" ]; then - echo "Must specify version!" - exit 1 -fi -MODS=($( - curl -sS https://raw.githubusercontent.com/kubernetes/kubernetes/${VERSION}/go.mod | - sed -n 's|.*k8s.io/\(.*\) => ./staging/src/k8s.io/.*|k8s.io/\1|p' -)) -for MOD in "${MODS[@]}"; do - V=$( - go mod download -json "${MOD}@${VERSION}" | - sed -n 's|.*"Version": "\(.*\)".*|\1|p' - ) - go mod edit "-replace=${MOD}=${MOD}@${V}" -done -go get "k8s.io/kubernetes@v${VERSION}"