fix: install composer before user build steps#214
Merged
AaronFeledy merged 3 commits intomainfrom Feb 18, 2026
Merged
Conversation
✅ Deploy Preview for lando-php ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Move composer installation from build_internal to build_as_root_internal so it runs before user build_as_root commands. Previously, if a build_as_root step failed, it would prevent composer from being installed entirely. Fixes #211
4934424 to
4a57eaf
Compare
a759880 to
a129b05
Compare
a129b05 to
2bc3e58
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.

Fixes #211 — composer silently missing when
build_as_rootfails.Moves composer installation from
build_internaltobuild_as_root_internalso it runs before user build steps. Addsbuild-failexample test to validate.Note
Medium Risk
Changes PHP service build-step ordering by moving Composer installation earlier in the root build phase, which can affect existing projects that relied on previous sequencing. Adds a CI example to catch regressions around failed
build_as_rootsteps.Overview
Ensures the requested Composer version is installed via
build_as_root_internal(instead of being the firstbuild_internalstep), so Composer is available even if a userbuild_as_rootcommand fails.Adds a new
examples/build-failLeia test case and includes it in the PR workflow matrix to validate Composer remains installed whenbuild_as_rootexits non-zero.Written by Cursor Bugbot for commit 2bc3e58. This will update automatically on new commits. Configure here.