Preserve wrapped Composer overlay package layouts#2057
Open
chubes4 wants to merge 1 commit into
Open
Conversation
Collaborator
Author
|
Lab integration evidence is available from run The package-layout repair removes the previous 138 autoload warnings and allows the structured WP-CLI payload to parse. The fixture now retains the import report, The matrix remains red for fixture quality findings, as expected. Evidence readiness improved from five missing fields to one: |
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.
Summary
Preserve a Composer dependency overlay as one coherent package when the consumer adds a common wrapper directory to its PSR-4 paths. This keeps package bootstraps, package-local Composer metadata, and source files aligned instead of relocating only source directories.
What changed
Compatibility
Overlay target paths, checkout immutability, cleanup ownership, source references, and non-wrapper relocation behavior remain unchanged. Wrapper detection fails closed when mappings disagree or any comparable mapping remains unwrapped.
Verification
npm run test:composer-package-overlay-autoload-layoutnpm run buildgit diff --checkEvidence
Lab run
10b9a5f5-4782-4f77-9b29-cf2afe61d1acexecuted WP Codebox #2054 commit789b5aa5806f914afd4f0c1684af690f4947f930. The repaired WP-CLI response retained 1,047,387 characters, proving the lazy-response fix, but the overlay emitted 138 missing-source classmap warnings and the payload ended mid-JSON. Raw output SHA-256:1dc2de341beb689dcbc6b37373ed2dcafecd25b3d28534f9567362e7b27409be.Closes #2055
AI assistance