mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #5260 from alliasgher/chore/5240-unify-curl
ci: switch build scripts from wget to curl
This commit is contained in:
@@ -75,7 +75,7 @@ function build_libpathrs() {
|
||||
local tar="libpathrs-${ver}.tar.xz"
|
||||
|
||||
# Download, check, and extract.
|
||||
wget "https://github.com/cyphar/libpathrs/releases/download/v${ver}/${tar}"{,.asc}
|
||||
curl -fsSL --remote-name-all "https://github.com/cyphar/libpathrs/releases/download/v${ver}/${tar}"{,.asc}
|
||||
sha256sum --strict --check - <<<"${LIBPATHRS_SHA256[${ver}]} *${tar}"
|
||||
|
||||
local srcdir
|
||||
|
||||
@@ -27,7 +27,7 @@ function build_libseccomp() {
|
||||
local tar="libseccomp-${ver}.tar.gz"
|
||||
|
||||
# Download, check, and extract.
|
||||
wget "https://github.com/seccomp/libseccomp/releases/download/v${ver}/${tar}"{,.asc}
|
||||
curl -fsSL --remote-name-all "https://github.com/seccomp/libseccomp/releases/download/v${ver}/${tar}"{,.asc}
|
||||
sha256sum --strict --check - <<<"${SECCOMP_SHA256[${ver}]} *${tar}"
|
||||
|
||||
local srcdir
|
||||
|
||||
@@ -34,7 +34,7 @@ platform:el9 | platform:el10)
|
||||
esac
|
||||
|
||||
# Install common packages
|
||||
RPMS=(cargo container-selinux fuse-sshfs git-core glibc-static golang iptables jq libseccomp-devel lld make policycoreutils wget)
|
||||
RPMS=(cargo container-selinux curl fuse-sshfs git-core glibc-static golang iptables jq libseccomp-devel lld make policycoreutils)
|
||||
# Work around dnf mirror failures by retrying a few times.
|
||||
for i in $(seq 0 2); do
|
||||
sleep "$i"
|
||||
|
||||
Reference in New Issue
Block a user