Commit d78268eb73b for nodejs

commit d78268eb73bdb5ce0b621b1d28415860263f73cd
Author: Antoine du Hamel <duhamelantoine1995@gmail.com>
Date:   Wed Nov 18 10:29:57 2026 +0100

    tools: remove duplicate variables

    All our script already define a `BASE_DIR` variable, needed to
    load `utils.sh`; computing a similar `ROOT` variable in `utils.sh` is
    pure overhead and needlessly complicates reading the source files.

    Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
    PR-URL: https://github.com/nodejs/node/pull/67511
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>

diff --git a/tools/dep_updaters/update-amaro.sh b/tools/dep_updaters/update-amaro.sh
index 0169e9304bc..f257497b7e5 100755
--- a/tools/dep_updaters/update-amaro.sh
+++ b/tools/dep_updaters/update-amaro.sh
@@ -60,7 +60,7 @@ rm -rf node_modules
 mv ./* "$DEPS_DIR/amaro"

 # update version information in src/undici_version.h
-cat > "$ROOT/src/amaro_version.h" <<EOF
+cat > "$BASE_DIR/src/amaro_version.h" <<EOF
 // This is an auto generated file, please do not edit.
 // Refer to tools/dep_updaters/update-amaro.sh
 #ifndef SRC_AMARO_VERSION_H_
diff --git a/tools/dep_updaters/update-c-ares.sh b/tools/dep_updaters/update-c-ares.sh
index ca77ee52183..71a333bfee2 100755
--- a/tools/dep_updaters/update-c-ares.sh
+++ b/tools/dep_updaters/update-c-ares.sh
@@ -73,7 +73,7 @@ echo "Replacing existing c-ares"
 replace_dir "$DEPS_DIR/cares" "$ARES_FOLDER"

 echo "Updating cares.gyp"
-"$NODE" "$ROOT/tools/dep_updaters/update-c-ares.mjs"
+"$NODE" "$BASE_DIR/tools/dep_updaters/update-c-ares.mjs"

 # Update the version number on maintaining-dependencies.md
 # and print the new version as the last line of the script as we need
diff --git a/tools/dep_updaters/utils.sh b/tools/dep_updaters/utils.sh
index 76a40d4bbc4..9ece341d1e8 100644
--- a/tools/dep_updaters/utils.sh
+++ b/tools/dep_updaters/utils.sh
@@ -1,8 +1,5 @@
 #!/bin/sh

-ROOT=$(cd "$(dirname "$0")/../.." && pwd)
-export ROOT
-
 # This function compare new version with current version of a dependency and
 # exit the script if the versions are the same
 #