aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/lib/nots/package_manager/base/node_modules_bundler.py
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2024-07-08 15:54:05 +0000
committerAlexander Smirnov <alex@ydb.tech>2024-07-08 15:54:05 +0000
commitfc7be18c76af2e700641f3598c4856baeef1428e (patch)
tree11dbca45eb321c3a4dd08b12152acc6ef5dd3fa9 /build/plugins/lib/nots/package_manager/base/node_modules_bundler.py
parentec0e7ed6da6fb317741fd8468602949a1362eca5 (diff)
parentc92cb9d3a19331916f0c274d80e67f02a62caa9b (diff)
downloadydb-fc7be18c76af2e700641f3598c4856baeef1428e.tar.gz
Merge branch 'rightlib' into mergelibs-240708-1553
Diffstat (limited to 'build/plugins/lib/nots/package_manager/base/node_modules_bundler.py')
-rw-r--r--build/plugins/lib/nots/package_manager/base/node_modules_bundler.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/build/plugins/lib/nots/package_manager/base/node_modules_bundler.py b/build/plugins/lib/nots/package_manager/base/node_modules_bundler.py
index 3a1d7213d1..cdf2b5f90e 100644
--- a/build/plugins/lib/nots/package_manager/base/node_modules_bundler.py
+++ b/build/plugins/lib/nots/package_manager/base/node_modules_bundler.py
@@ -1,5 +1,6 @@
import os
import tempfile
+import logging
from .utils import build_nm_path
@@ -69,6 +70,12 @@ def extract_node_modules(build_root, node_modules_path, bundle_path):
continue
bundled_nm_path = build_nm_path(os.path.join(node_modules_path, PEERS_DIR, p))
nm_path = build_nm_path(os.path.join(build_root, p))
- os.rename(bundled_nm_path, nm_path)
+
+ try:
+ os.rename(bundled_nm_path, nm_path)
+ except FileNotFoundError as e:
+ logging.error(f"exists={os.path.exists(bundled_nm_path)} : {bundled_nm_path}")
+ logging.error(f"exists={os.path.exists(nm_path)} : {bundled_nm_path}")
+ raise e
return True