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> --continueafter 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. Aphpstan.neonyou wrote between runs is moved aside the same way — it would otherwise shadow the publishedphpstan.neon.distentirely, 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 newleaves behind. It only bites when a step re-runs under--continueover 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
.bakfile. 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 tocompletedStepsin.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.