aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/nots.py
diff options
context:
space:
mode:
authorkhoden <khoden@yandex-team.com>2024-04-23 19:28:40 +0300
committerkhoden <khoden@yandex-team.com>2024-04-23 19:38:46 +0300
commit42c37f6650d9387d20dc37cba3fbddd523075166 (patch)
tree7078e1e3fff8c6fa58f14dba4d4c132c96e2652e /build/plugins/nots.py
parent44ad22687965819ce6d04c83f7c8cc927fae90ea (diff)
downloadydb-42c37f6650d9387d20dc37cba3fbddd523075166.tar.gz
conf: Сделать вызов макроса TS_FILES обязательным для TS_PACKAGE
fd92c9fd52236249f4a95bc57fff7f66797923a5
Diffstat (limited to 'build/plugins/nots.py')
-rw-r--r--build/plugins/nots.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/plugins/nots.py b/build/plugins/nots.py
index 49f003ace9..b69b65d215 100644
--- a/build/plugins/nots.py
+++ b/build/plugins/nots.py
@@ -698,6 +698,17 @@ def on_ts_files(unit, *files):
@_with_report_configure_error
+def on_ts_package_check_files(unit):
+ ts_files = unit.get("_TS_FILES_COPY_CMD")
+ if ts_files == "":
+ ymake.report_configure_error(
+ "\n"
+ "In the TS_PACKAGE module, you should define at least one file using the TS_FILES() macro.\n"
+ "Docs: https://docs.yandex-team.ru/frontend-in-arcadia/references/TS_PACKAGE#ts-files."
+ )
+
+
+@_with_report_configure_error
def on_depends_on_mod(unit):
if unit.get("_TS_TEST_DEPENDS_ON_BUILD"):
for_mod_path = unit.get("TS_TEST_FOR_PATH")