Skip to content

devops: move the latte precompile to app/cli, the last build script a release runs from cli/ - #259

Merged
landsman merged 2 commits into
mainfrom
devops/move-latte-precompile
Nov 1, 2026
Merged

landsman merged 2 commits into
mainfrom
devops/move-latte-precompile

Conversation

@landsman

@landsman landsman commented Nov 1, 2026

Copy link
Copy Markdown
Owner

cli/latte-precompile.php is now Desktop\Cli\Command\LattePrecompile, called through $(CLI) like the other commands.

The precompile has to load the packaged copy's classes, because Desktop\Latte keys each compiled file by its path relative to the app/ it was loaded from. So package-app now runs the copy's own run.php, as its first step, while that copy still has app/cli/ and the dev autoload. That means it runs before composer install --no-dev rather than after.

Old and new order give the same 16 templates under the same file names; the compiled files differ only in the source-path comment and the .lock hashes. make bundle ships latte-cache/ with those 16 and no cli/. make qa and make check pass. make e2e and make e2e-packaged were not run, so the packaged app itself has not been started on this change.

@landsman
landsman merged commit d32d21a into main Nov 1, 2026
4 checks passed
@landsman
landsman deleted the devops/move-latte-precompile branch November 1, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant