aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzaverden <zaverden@yandex-team.com>2024-07-22 12:30:47 +0300
committerzaverden <zaverden@yandex-team.com>2024-07-22 12:45:09 +0300
commit4ba0330b6d471d5fc105af31c7a0dbf2a19c839b (patch)
tree0a619e1fd08d8aaa430cf4b650b66f8e77913763
parent224f37eff4b81b528e56c22e48ab3ecf6500a593 (diff)
downloadydb-4ba0330b6d471d5fc105af31c7a0dbf2a19c839b.tar.gz
chore(dummy): set NO_CONTRIB_TYPESCRIPT
fcd51f12bf963e95ecc92492b1a875129170eff1
-rw-r--r--build/plugins/lib/nots/package_manager/base/lockfile.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/plugins/lib/nots/package_manager/base/lockfile.py b/build/plugins/lib/nots/package_manager/base/lockfile.py
index b1e0effdc8..4ae51ca7bf 100644
--- a/build/plugins/lib/nots/package_manager/base/lockfile.py
+++ b/build/plugins/lib/nots/package_manager/base/lockfile.py
@@ -30,7 +30,10 @@ class LockfilePackageMeta(object):
return " ".join([self.tarball_url, self.sky_id, self.integrity, self.integrity_algorithm])
def to_uri(self):
- pkg_uri = f"{self.tarball_url}#integrity={self.integrity_algorithm}-{self.integrity}"
+ tarball_url: str = self.tarball_url
+ if not tarball_url.startswith("https://") and not tarball_url.startswith("http://"):
+ tarball_url = "https://npm.yandex-team.ru/" + tarball_url
+ pkg_uri = f"{tarball_url}#integrity={self.integrity_algorithm}-{self.integrity}"
return pkg_uri