Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(devex): emit valid tach config from product scaffold (#57925)

Julian Bez7c6f555144a0
diff --git a/tools/hogli-commands/hogli_commands/product/scaffold.py b/tools/hogli-commands/hogli_commands/product/scaffold.py
index bb96bffb071a..9e0901b58880 100644
--- a/tools/hogli-commands/hogli_commands/product/scaffold.py
+++ b/tools/hogli-commands/hogli_commands/product/scaffold.py
@@ -57,10 +57,14 @@ def _add_to_tach_toml(product_name: str, *, dry_run: bool) -> None:
f"\n[[modules]]\n"
f'path = "{module_path}"\n'
f'depends_on = ["posthog"]\n'
- f'layer = "products"\n'
- f"interfaces = [\n"
- f' "{module_path}.backend.facade",\n'
- f' "{module_path}.backend.presentation.views",\n'
+ f'layer = "modules"\n'
+ f"\n[[interfaces]]\n"
+ f"expose = [\n"
+ f' "backend\\\\.facade.*",\n'
+ f' "backend\\\\.presentation\\\\.views.*",\n'
+ f"]\n"
+ f"from = [\n"
+ f' "{module_path}",\n'
f"]\n"
)
_register_in_file(