A resumed run replaced a config you edited, leaving a .bak file behind

WARN phpstan.neon.dist already existed and differed from the template — the original was kept as phpstan.neon.dist.bak.
When

Resuming with kalimera new <app-name> --continue after editing one of the files kalimera publishes (pint.json, phpstan.neon.dist, rector.php, the AgentGuard provider) while working out why the first run failed. A phpstan.neon you wrote between runs is moved aside the same way — it would otherwise shadow the published phpstan.neon.dist entirely, so it cannot stay, but it is not worth deleting either.

Why it happens

Publishing a template is a copy, so whatever the destination already holds is overwritten. On a fresh scaffold that is nothing — none of the shipped templates collide with a file laravel new leaves behind. It only bites when a step re-runs under --continue over a file you touched in between, which is exactly when a config gets hand-edited. Rather than lose the edit silently, kalimera copies the existing file aside first and says so. A run that fails twice over the same file gets .bak2, .bak3, and so on, so a later backup never overwrites an earlier one.

Fix

Nothing is lost — your version is the .bak file. Merge whatever you meant to keep back into the published file and delete the backup. To stop the step republishing at all on the next resume, add it to completedSteps in .kalimera.json (see the entry above); to keep your file untouched instead, that is the only way, since a step that runs will publish its template.

The one case where publishing is skipped is a backup that could not be written — a read-only directory, a full disk. The warning then reads "it was left as it is, and the template was not published over it": overwriting anyway would destroy the edit the backup exists to protect, and a template that failed to land is the more recoverable of the two — copy it in from templates/ in the kalimera repo once the write problem is fixed.

Still stuck? Open an issue with your --log transcript.

All troubleshooting entries