From cc445f54c0fa8e9b35376550874422c932ad1566 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Tue, 20 Feb 2024 10:45:56 -0800 Subject: [PATCH] Use wget to download containerd archive Signed-off-by: Maksym Pavlenko --- scripts/update-vendor.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/update-vendor.sh b/scripts/update-vendor.sh index d5c28b0..e09a15d 100755 --- a/scripts/update-vendor.sh +++ b/scripts/update-vendor.sh @@ -13,11 +13,8 @@ VERSION="v1.7.13" set -x # Download containerd source code. -gh release download $VERSION \ - --repo containerd/containerd \ - --archive tar.gz \ - --skip-existing \ - --output containerd.tar.gz +wget https://github.com/containerd/containerd/archive/refs/tags/$VERSION.tar.gz -O containerd.tar.gz +trap 'rm containerd.tar.gz' EXIT # Extract zip archive to a temporary directory. TEMP_DIR=$(mktemp -d) @@ -25,7 +22,6 @@ tar --extract \ --file containerd.tar.gz \ --strip-components=1 \ --directory $TEMP_DIR -rm containerd.tar.gz function sync_crate() { local crate_name=$1