You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0 87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B 0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 1.8.5
PHP version: 7.3.5
PHP binary path: /usr/bin/php7.3
When I run this command:
composer unpack orm
I get the following output:
Restricting packages listed in "symfony/symfony" to "4.3.*"
Nothing to unpack
Back in the Flex command for unpacking, as you can imagine, the provider names array is empty so it cannot find the package anywhere, no unpack happens.
I sincerely have no clue what is the solution to this bug/limitation from Composer is.
Any ideas?
For now a workaround is to remove the private packagist config to be able to unpack, not ideal but it works.
The text was updated successfully, but these errors were encountered:
respinoza
changed the title
When using packagist.com, Symfony flex fails
When using packagist.com, Symfony flex unpack fails
Jun 3, 2019
You also have to configure private packagist, for example,
config.json
looks like:My
composer.json
:Output of
composer diagnose
:When I run this command:
I get the following output:
And I expected this to happen:
Unpack the extension
More on symfony/flex#502
Now, I checked why this is happening and noticed that when you use private packagist, it is added as a
lazy-provider
, the Flex unpack command uses the composer APIfindPackage
(https://github.com/composer/composer/blob/master/src/Composer/Repository/ComposerRepository.php#L126) to match the requested package to be unpacked (orm
in my example), the problem I see is that thehasProviders
is returns true as it is a lazy provider but thegetProviderNames
return an empty array. There is a comment in the code where it says composer is unable to return providers when they are marked as lazy, as seen in https://github.com/composer/composer/blob/master/src/Composer/Repository/ComposerRepository.php#L253Back in the Flex command for unpacking, as you can imagine, the provider names array is empty so it cannot find the package anywhere, no unpack happens.
I sincerely have no clue what is the solution to this bug/limitation from Composer is.
Any ideas?
For now a workaround is to remove the private packagist config to be able to unpack, not ideal but it works.
The text was updated successfully, but these errors were encountered: