Repository navigation
Conversation
Box has to load Parcel's compactors, so it needs an autoloader with Parcel in it. compile looked for Box in the project, then in Parcel's own vendor/, then on the PATH. Parcel only has its own vendor/ in a checkout. Installed from Packagist, Box sits next to it in the shared vendor/, so compile fell through to whatever box was on the PATH and failed with "The compactor class Parcel\Compactor\RealPathMod does not exist" unless that happened to be the right one. Ask Composer where it installed humbug/box for this copy of Parcel and run the vendor/bin/box beside it first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
parcel compilefails when Parcel is installed from Packagist unless the rightboxhappens to be first on your PATH:Box has to load Parcel's compactors, so it needs an autoloader that has Parcel in it.
compilelooked for Box in the project'svendor/bin, then in Parcel's ownvendor/bin, then on the PATH. Parcel only has its ownvendor/in a git checkout. When it's installed as a package, Box sits next to it in the sharedvendor/, socompilefell through to the PATH. On my machine that found an unrelated global Box, which knows nothing about Parcel.This asks Composer (
InstalledVersions) where it puthumbug/boxfor this copy of Parcel, and runs thevendor/bin/boxbeside it before trying anything else. It also addscomposer-runtime-apito the requirements, since that's whereInstalledVersionscomes from. The lock file change is just the hash and Composer's metadata.I found this while building an iOS app with Parcel 1.0.0 installed from Packagist into its own Composer home. The build failed as above. With this change copied into that install, the same build works and picks the right Box even with the other one first on the PATH. The new test fails without the change.
One behaviour change to watch: before, a project with its own
vendor/bin/boxgot that Box first. That Box can't load Parcel's compactors unless the project also requires Parcel, and in that case it's the same Box anyway.🤖 Generated with Claude Code