summaryrefslogtreecommitdiffstats
path: root/build/plugins/container_layers.py
diff options
context:
space:
mode:
authoralexv-smirnov <[email protected]>2023-06-13 11:05:01 +0300
committeralexv-smirnov <[email protected]>2023-06-13 11:05:01 +0300
commitbf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch)
tree1d1df72c0541a59a81439842f46d95396d3e7189 /build/plugins/container_layers.py
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
add ymake export to ydb
Diffstat (limited to 'build/plugins/container_layers.py')
-rw-r--r--build/plugins/container_layers.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/plugins/container_layers.py b/build/plugins/container_layers.py
new file mode 100644
index 00000000000..5fa15304744
--- /dev/null
+++ b/build/plugins/container_layers.py
@@ -0,0 +1,9 @@
+from _common import rootrel_arc_src
+
+
+def oncheck_allowed_path(unit, *args):
+ module_path = rootrel_arc_src(unit.path(), unit)
+ if not (module_path.startswith("junk") or module_path.startswith("base_layers")):
+ unit.message(
+ ["error", "Cannot create container layer in this directory. See https://st.yandex-team.ru/DTCC-1123"]
+ )