Add auto-rebuild option to automatically rebuild merge plan at runtime#196
Closed
Add auto-rebuild option to automatically rebuild merge plan at runtime#196
auto-rebuild option to automatically rebuild merge plan at runtime#196Conversation
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add option to automatically rebuild merge plan
Add Mar 5, 2026
auto-rebuild option to automatically rebuild merge plan
samdark
reviewed
Mar 6, 2026
Changed auto-rebuild to work at runtime instead of during Composer events. Now when Config is instantiated, it automatically checks if merge plan is stale (by comparing timestamps with composer.json/composer.lock) and rebuilds if needed. Users no longer need to run any Composer commands - the rebuild happens transparently. Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
auto-rebuild option to automatically rebuild merge planauto-rebuild option to automatically rebuild merge plan at runtime
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.
Without this option, any change to
composer.jsonconfig-plugin settings requires manually runningcomposer yii-config-rebuildto update the merge plan. The newauto-rebuildoption enables automatic runtime rebuilding of the merge plan, eliminating the need for any manual commands.Changes
Options: Addedauto-rebuildoption (default:false) withautoRebuild(): boolgetter.RuntimeRebuilder: New class that handles runtime merge plan checking and rebuilding.auto-rebuildis enabled by readingcomposer.jsoncomposer.json/composer.lockwith the merge plan filecomposer yii-config-rebuildif the merge plan is staleConfig: Constructor now automatically checks and rebuilds the merge plan before loading it whenauto-rebuildis enabled.EventHandler: Removed Composer event-based auto-rebuild logic (no longer needed).InfoCommand: AddedAuto rebuildrow toyii-config-infooutput.Usage
With this enabled, the merge plan is automatically kept up to date when your application starts. No manual commands needed — the rebuild happens transparently at runtime when
Configis instantiated ifcomposer.jsonorcomposer.lockhas been modified.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.