Skip to content

Commit

Permalink
Use wget to download containerd archive
Browse files Browse the repository at this point in the history
Signed-off-by: Maksym Pavlenko <[email protected]>
  • Loading branch information
mxpv committed Feb 22, 2024
1 parent af09869 commit cc445f5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/update-vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@ 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)
tar --extract \
--file containerd.tar.gz \
--strip-components=1 \
--directory $TEMP_DIR
rm containerd.tar.gz

function sync_crate() {
local crate_name=$1
Expand Down

0 comments on commit cc445f5

Please sign in to comment.