Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: fix nghttp3 updater script #56007

Merged
merged 4 commits into from
Nov 28, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions tools/dep_updaters/update-nghttp3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ cleanup () {
trap cleanup INT TERM EXIT

NGHTTP3_REF="v$NEW_VERSION"
NGHTTP3_ZIP="nghttp3-$NEW_VERSION"
NGHTTP3_ZIP="nghttp3-${NEW_VERSION}"
aduh95 marked this conversation as resolved.
Show resolved Hide resolved

cd "$WORKSPACE"

echo "Fetching nghttp3 source archive..."
curl -sL -o "$NGHTTP3_ZIP.zip" "/~https://github.com/ngtcp2/nghttp3/archive/refs/tags/$NGHTTP3_REF.zip"
log_and_verify_sha256sum "nghttp3" "$NGHTTP3_ZIP.zip"
unzip "$NGHTTP3_ZIP.zip"
rm "$NGHTTP3_ZIP.zip"
curl -sL -o "$NGHTTP3_ZIP.tar.xz" "/~https://github.com/ngtcp2/nghttp3/releases/download/${NGHTTP3_REF}/${NGHTTP3_ZIP}.tar.xz"
SHA256="$(curl -sL "/~https://github.com/ngtcp2/nghttp3/releases/download/${NGHTTP3_REF}/checksums.txt" | grep 'tar.xz$')"
log_and_verify_sha256sum "nghttp3" "$NGHTTP3_ZIP.tar.xz" "$SHA256"
tar -xJf "$NGHTTP3_ZIP.tar.xz"
rm "$NGHTTP3_ZIP.tar.xz"
mv "$NGHTTP3_ZIP" nghttp3

cd nghttp3
Expand Down
Loading