Skip to content

Commit

Permalink
Remove duplicated fetch_github_commit_archive in CI scripts.
Browse files Browse the repository at this point in the history
The code using `fetch_github_commit_archive` was removed in rust-lang#72937.
  • Loading branch information
ehuss committed Jun 23, 2022
1 parent 0143552 commit 1d7c20c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/ci/docker/host-x86_64/dist-various-2/shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,3 @@ function retry {
}
done
}

# Copied from ../../init_repo.sh
function fetch_github_commit_archive {
local module=$1
local cached="download-${module//\//-}.tar.gz"
retry sh -c "rm -f $cached && \
curl -f -sSL -o $cached $2"
mkdir $module
touch "$module/.git"
tar -C $module --strip-components=1 -xf $cached
rm $cached
}
1 change: 0 additions & 1 deletion src/ci/init_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ if [ "$(releaseChannel)" = "beta" ]; then
git fetch origin --unshallow beta master
fi

# Duplicated in docker/dist-various-2/shared.sh
function fetch_github_commit_archive {
local module=$1
local cached="download-${module//\//-}.tar.gz"
Expand Down

0 comments on commit 1d7c20c

Please sign in to comment.