From 678f2caa71bd4aef7170b0bc3d7926063af12dd4 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sun, 14 Dec 2025 15:01:11 +0000 Subject: [PATCH] tools: fix update-nghttp2 signature verification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Detached signatures must be passed to `gpgv` as a filename before the datafile (which can be stdin but the detached signature file cannot be stdin and cannot be piped in). PR-URL: https://github.com/nodejs/node/pull/61035 Refs: https://github.com/nodejs/node/pull/60113 Reviewed-By: Michaƫl Zasso Reviewed-By: Marco Ippolito Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca --- tools/dep_updaters/update-nghttp2.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/dep_updaters/update-nghttp2.sh b/tools/dep_updaters/update-nghttp2.sh index c19dedf1ca2..759f71f4f40 100755 --- a/tools/dep_updaters/update-nghttp2.sh +++ b/tools/dep_updaters/update-nghttp2.sh @@ -50,12 +50,13 @@ echo "Fetching nghttp2 source archive" curl -sL -o "$NGHTTP2_TARBALL" "https://github.com/nghttp2/nghttp2/releases/download/$NGHTTP2_REF/$NGHTTP2_TARBALL" echo "Verifying PGP signature" -curl -sL "https://github.com/nghttp2/nghttp2/releases/download/${NGHTTP2_REF}/${NGHTTP2_TARBALL}.asc" \ -| gpgv --keyring "$BASE_DIR/tools/dep_updaters/nghttp.kbx" "$NGHTTP2_TARBALL" +curl -sL -o "${NGHTTP2_TARBALL}.asc" "https://github.com/nghttp2/nghttp2/releases/download/${NGHTTP2_REF}/${NGHTTP2_TARBALL}.asc" +gpgv --keyring "$BASE_DIR/tools/dep_updaters/nghttp.kbx" "${NGHTTP2_TARBALL}.asc" "${NGHTTP2_TARBALL}" echo "Unpacking archive" tar xJf "$NGHTTP2_TARBALL" rm "$NGHTTP2_TARBALL" +rm "${NGHTTP2_TARBALL}.asc" mv "nghttp2-$NEW_VERSION" nghttp2 echo "Removing everything, except lib/ and COPYING"