diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-07-08 15:54:05 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-07-08 15:54:05 +0000 |
commit | fc7be18c76af2e700641f3598c4856baeef1428e (patch) | |
tree | 11dbca45eb321c3a4dd08b12152acc6ef5dd3fa9 /build/plugins/lib/nots/package_manager/base | |
parent | ec0e7ed6da6fb317741fd8468602949a1362eca5 (diff) | |
parent | c92cb9d3a19331916f0c274d80e67f02a62caa9b (diff) | |
download | ydb-fc7be18c76af2e700641f3598c4856baeef1428e.tar.gz |
Merge branch 'rightlib' into mergelibs-240708-1553
Diffstat (limited to 'build/plugins/lib/nots/package_manager/base')
-rw-r--r-- | build/plugins/lib/nots/package_manager/base/node_modules_bundler.py | 9 |
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 |