From 971bc2dd51335672cf556ff6d6c8af6945cf3feb Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 15 May 2026 01:14:29 +0200 Subject: [PATCH] tools: fix test426 updater The previous version produces a commit that does pass the linter because of a too-long commit title. Signed-off-by: Antoine du Hamel PR-URL: https://github.com/nodejs/node/pull/63271 Reviewed-By: Colin Ihrig Reviewed-By: Rafael Gonzaga Reviewed-By: Chengzhong Wu Reviewed-By: Luigi Pinca --- tools/dep_updaters/update-test426-fixtures.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/dep_updaters/update-test426-fixtures.sh b/tools/dep_updaters/update-test426-fixtures.sh index a1a97797c29..e9cca0dfac8 100755 --- a/tools/dep_updaters/update-test426-fixtures.sh +++ b/tools/dep_updaters/update-test426-fixtures.sh @@ -17,10 +17,10 @@ fi TARBALL_URL=$(curl -fsIo /dev/null -w '%header{Location}' https://github.com/tc39/source-map-tests/archive/HEAD.tar.gz) SHA=$(basename "$TARBALL_URL") -if [ "$CURRENT_SHA" = "$SHA" ]; then - echo "Already up-to-date" - exit 0 -fi +# shellcheck disable=SC1091 +. "$BASE_DIR/tools/dep_updaters/utils.sh" + +compare_dependency_version "test426-fixtures" "$CURRENT_SHA" "$SHA" rm -rf "$TARGET_DIR" mkdir "$TARGET_DIR" @@ -32,4 +32,5 @@ mv "$TMP_FILE" "$README" # The last line of the script should always print the new version, # as we need to add it to $GITHUB_ENV variable. -echo "NEW_VERSION=$SHA" +NEW_VERSION=$(echo "$SHA" | head -c 39) +echo "NEW_VERSION=$NEW_VERSION"