From 28b05cf8c89ef50cc7e452b5b5f727db6fee287a Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Thu, 30 Nov 2023 19:26:14 -0500 Subject: [PATCH] tools: fix simdjson updater PR-URL: https://github.com/nodejs/node/pull/50986 Reviewed-By: Geoffrey Booth Reviewed-By: Marco Ippolito --- tools/dep_updaters/update-simdjson.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/dep_updaters/update-simdjson.sh b/tools/dep_updaters/update-simdjson.sh index 48a0bd0f64..3aa0e06eff 100755 --- a/tools/dep_updaters/update-simdjson.sh +++ b/tools/dep_updaters/update-simdjson.sh @@ -7,6 +7,9 @@ DEPS_DIR="$BASE_DIR/deps" [ -z "$NODE" ] && NODE="$BASE_DIR/out/Release/node" [ -x "$NODE" ] || NODE=$(command -v node) +# shellcheck disable=SC1091 +. "$BASE_DIR/tools/dep_updaters/utils.sh" + NEW_VERSION="$("$NODE" --input-type=module <<'EOF' const res = await fetch('https://api.github.com/repos/simdjson/simdjson/releases/latest'); if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });