From ff923949e0747ca4fc27971c56d5d9d98552b114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Labont=C3=A9?= Date: Wed, 28 Oct 2026 09:52:31 -0400 Subject: [PATCH] fix(add-component): stop seeding a .gitignore that hides the path manifest Both seeded .gitignore files ignored *.generated-paths.json as "rewritten on every regen". The generator documents the opposite: the manifest is committed in the component, its capturedAt comes from the spec repo's /.paths.json baseline rather than the clock, so a regen that moved nothing leaves it byte-identical (clabonte/generator#2055). Ignoring it discards the old-to-new path mapping a layout-changing release hands over. Co-Authored-By: Claude Opus 5.5 --- templates/components/csharp/gitignore | 4 ++-- templates/components/python/gitignore | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/components/csharp/gitignore b/templates/components/csharp/gitignore index 89a41ac..089a99d 100644 --- a/templates/components/csharp/gitignore +++ b/templates/components/csharp/gitignore @@ -5,5 +5,5 @@ obj/ .idea/ TestResults/ -# Generator bookkeeping, rewritten on every regen. -*.generated-paths.json +# *.generated-paths.json is deliberately NOT ignored: the generator's path +# manifest is committed, and is byte-identical when a regen moved nothing. diff --git a/templates/components/python/gitignore b/templates/components/python/gitignore index bf361c3..5f4bc10 100644 --- a/templates/components/python/gitignore +++ b/templates/components/python/gitignore @@ -4,5 +4,5 @@ __pycache__/ .pytest_cache/ .coverage -# Generator bookkeeping, rewritten on every regen. -*.generated-paths.json +# *.generated-paths.json is deliberately NOT ignored: the generator's path +# manifest is committed, and is byte-identical when a regen moved nothing.