aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzaverden <zaverden@yandex-team.com>2024-07-03 11:15:11 +0300
committerzaverden <zaverden@yandex-team.com>2024-07-03 11:32:10 +0300
commit2f2bc2dafa38c5568789d6499d9fd95b466e292f (patch)
tree64211db402a1874872851d6c4d1ab4fdc345e5ae
parentaf9ccda1c385364b2a6b6e01dfebdf6e536d779f (diff)
downloadydb-2f2bc2dafa38c5568789d6499d9fd95b466e292f.tar.gz
chore(extract_node_modules): extra logs for placing peers node_modules
856d71a77e6d037ef1f718c46631191ae6d8bb98
-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