New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to unpack packages #502
Comments
Unpack is a way to replace a meta package with its dependencies. After creating a project with the skeleton, |
composer req --unpack orm |
@fabpot and that's what is not happening... my composer.json right now has @nicolas-grekas I ran This is how composer.json looks (partially)
I ran |
@fabpot I fixed a copy paste problem with my original comment, |
I've just tested with the following and it works well:
|
which version of |
@stof I am using flex 1.2.5. Looking how it worked for @fabpot I tried on my personal computer and it works, the only difference at work is the use of private packagist and I can confirm that removing the config for packagist.com in my This is the snippet I removed (this is what packagist.com asks you to add to use their service)
I feel this should work with the use of private packagist, right? |
@respinoza Thanks for investigating this issue. Would you be able to locate the issue and submit a pull request with a fix? I don't have a private packagist, so I don't know how to fix it easily. |
@fabpot I will take a look at my end and if I can fix it, create a PR |
I am going to bring this to the composer project as I found out that when you use a private repository, it is marked as a lazy provider but the |
Do you have a link to the flex source where it does this unpacking? Maybe it'd help me understand.. Because the way I see it, the symfony/orm-pack package should have the list of packages it is replacing already, so flex unpacking should just be replacing that orm-pack with its replaces. I don't see why it calls findPackage at all? |
@Seldaek The call for As discussed, the return value will be null and the for loop will just continue, no packages added to be unpacked. |
I see.. This use case is fixed in the 2.0 branch of Composer. For the current version perhaps flex should try first to call findPackage on |
@respinoza up for a PR? |
Applied in #543 |
@nicolas-grekas thanks, I no longer have access to packagist and the environment where this was an issue. 🙇♂️ |
@nicolas-grekas we have access to packagist.com, we'll do the testing thanks. |
confirmed it is fixed 🎉 Thanks to everyone involved. |
Using composer 1.8.5 and PHP 7.3 (we use private packagist)
If I install symfony like
composer create-project symfony/skeleton my-project
composer create-project symfony/website-skeleton my-project
And then I run
composer unpack orm
, it just says "Nothing to unpack".Same for other packs.
Unpack doesn't work either for other projects. Thank you.
Am I missing something?
The text was updated successfully, but these errors were encountered: