summaryrefslogtreecommitdiffstats
path: root/build/plugins/nots.py
diff options
context:
space:
mode:
authorzaverden <[email protected]>2023-09-20 13:35:35 +0300
committerzaverden <[email protected]>2023-09-20 14:36:34 +0300
commitf532407f20a4453b989a50dc33449c80ed0b1cd9 (patch)
tree0143dd59f13475a0a90dfa056e543ffbec052a02 /build/plugins/nots.py
parentf8e834958e9c011b74b0ec4a741b0b2eb82cf60d (diff)
feat(FROM_NPM): load packages by tarball url
Раньше FROM_NPM строил урл для скачивания по имени пакета. Изменил это на использование поля tarball, потому что это требуется для интеграции с `@yatool/prebuilder`
Diffstat (limited to 'build/plugins/nots.py')
-rw-r--r--build/plugins/nots.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/plugins/nots.py b/build/plugins/nots.py
index 1421903a376..3d8edcf47bc 100644
--- a/build/plugins/nots.py
+++ b/build/plugins/nots.py
@@ -135,9 +135,9 @@ def on_from_npm_lockfiles(unit, *args):
ymake.report_configure_error("lockfile not found: {}".format(lf_path))
try:
- for pkg in pm.extract_packages_meta_from_lockfiles(lf_paths):
+ for pkg in pm.extract_packages_meta_from_lockfiles(lf_paths, no_files=True):
unit.on_from_npm(
- [pkg.name, pkg.version, pkg.sky_id, pkg.integrity, pkg.integrity_algorithm, pkg.tarball_path]
+ [pkg.tarball_url, pkg.sky_id, pkg.integrity, pkg.integrity_algorithm, pkg.tarball_path]
)
except Exception as e:
if unit.get("TS_RAISE") == "yes":