Repository navigation
feat: route tooling through core's recipe toolingRoutes - #229
Merged
Merged
Conversation
✅ Deploy Preview for lando-platformsh ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
AaronFeledy
force-pushed
the
feat/core-tooling-routes-main
branch
from
November 17, 2026 04:13
00a1e43 to
ade713d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Moves per-directory tooling routing onto core's recipe
toolingRoutescontract (lando/core#502, lando/core#515), and keeps today's behavior on cores that don't support it yet.super()asoptions.toolingRoutes, without stripping Landofile-owned names. Cores that copy the key ('toolingRoutes' in this.configaftersuper()) apply the closest route on both the live and warm paths and merge Landofile tooling last. Landofile commands then win in every app directory, with nolando --clearneeded.app.jsno longer routes atpost-init4 or writes<app>.tooling.routerat 9, and it removes the router file that older versions left behind. Core now handles stripping disabled commands and replacing whole commands.toolingRoutes, so the builder still sets the strippedapp.upsun.toolingRouterandapp.jsbehaves exactly as before.Verified with
npm test(lint, typecheck, 797 passing) plus a one-off run of the core PR'sget-tasksagainst the builder's routes for a two-app fixture, from the non-default app's directory: the Landofile override won, that app's own commands were used, and an old router file was ignored. Cursor Bugbot found no bugs.Note
Medium Risk
Changes how tooling is resolved per directory across init and warm cache paths, with a compatibility fallback for older cores but new behavior depending on core version pairing.
Overview
Routes multi-app tooling through Lando core's recipe
toolingRouteswhen the installed core supports it, instead of relying only on the plugin's masked router cache.The builder now always passes unmasked per-directory routes to the parent recipe as
options.toolingRoutes(Landofile names kept), while still building a maskedtoolingRouterfor older cores. Aftersuper(), it setsapp.upsun.coreToolingRouteswhen'toolingRoutes'appears onthis.config; otherwise it stashes the legacy router onapp.upsun.toolingRouter.On modern cores,
app.jsskipspost-init@4 routing and stops writing<app>.tooling.routerat @9, only removing a stale router cache. Core is expected to pick the cwd route and merge Landofile tooling last, so overrides win everywhere withoutlando --clear. Legacy cores keep the previous shallow-merge and double-JSON router cache behavior.Documentation (AGENTS.md, architecture, lifecycle, tooling) and CHANGELOG describe both modes; tests cover the new core path and unmasked vs masked builder output.
Reviewed by Cursor Bugbot for commit ade713d. Bugbot is set up for automated code reviews on this repo. Configure here.