aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvturov <vturov@yandex-team.com>2024-04-25 11:24:56 +0300
committervturov <vturov@yandex-team.com>2024-04-25 11:35:52 +0300
commitbae4fe8e1e7bd4c033bb805afb1af43277b785ef (patch)
tree52e022886140af6c6310d6bdfe5062e30b88f904
parent70af89359918bf9b7197d34b0e376c965592f5e0 (diff)
downloadydb-bae4fe8e1e7bd4c033bb805afb1af43277b785ef.tar.gz
Выходные директории не должны дублироваться
`libarchive` более чутко среагировала на наличие дублирующих путей в списке директорий на упаковку. Функция, анализирующая `tsconfig` файлы при наличии нескольких связанных конфигурационных файлов, в которых были указаны одинаковые выходные директории, выдавала в списке дублирующие значения. После изменения передаём список уникальных путей, это позволяет включить замену `tarfile` и в `builder'е` 559239ef757627b3365995e3b3213487204fff23
-rw-r--r--build/plugins/lib/nots/typescript/ts_config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/plugins/lib/nots/typescript/ts_config.py b/build/plugins/lib/nots/typescript/ts_config.py
index 52dfa20550..b2f5d40d57 100644
--- a/build/plugins/lib/nots/typescript/ts_config.py
+++ b/build/plugins/lib/nots/typescript/ts_config.py
@@ -276,7 +276,7 @@ class TsConfig(object):
return ts_glob(ts_glob_config, all_files)
def get_out_dirs(self):
- # type: () -> list[str]
+ # type: () -> set[str]
output_dirs = [self.compiler_option("outDir"), self.compiler_option("declarationDir")]
- return [d for d in output_dirs if d is not None]
+ return {d for d in output_dirs if d is not None}