magento2-replace-tools icon indicating copy to clipboard operation
magento2-replace-tools copied to clipboard

No bulk package found with name "yireo/magento2-replace-core"

Open peterjaap opened this issue 1 year ago • 3 comments
trafficstars

Bulk adding doesn't work?

composer replace:bulk:add yireo/magento2-replace-inventory
Found yireo/magento2-replace-inventory:4.2.8.0

In BulkReplacement.php line 123:

  No bulk package found with name "yireo/magento2-replace-core"


replace:bulk:add <package>

peterjaap avatar Oct 07 '24 10:10 peterjaap

Also;

composer replace:bulk:add yireo/magento2-replace-graphql

In BulkReplacement.php line 123:

  No bulk package found with name "yireo/magento2-replace-graphql"


replace:bulk:add <package>

And;

composer replace:bulk:add yireo/magento2-replace-content-staging

In BulkReplacement.php line 123:

  No bulk package found with name "yireo/magento2-replace-content-staging"


replace:bulk:add <package>

Am I missing something here?

peterjaap avatar Oct 07 '24 10:10 peterjaap

Hmm. I'm running the following and getting this:

$ composer replace:bulk:add yireo/magento2-replace-graphql
Found yireo/magento2-replace-graphql:4.2.8.0
Found yireo/magento2-replace-bundled:4.3.4.0
Found yireo/magento2-replace-content-staging:4.2.2.0
Do not forget to run "composer replace:build" afterwards

Could it be that you have cloned these repositories in your own Packagist or something?

jissereitsma avatar Oct 07 '24 14:10 jissereitsma

Yes we use Private Pakvagist but I’ve added them there manually and still to no avail.

peterjaap avatar Oct 07 '24 14:10 peterjaap

We encounter the same problem and can confirm that allowing public packagist solves the problem.

allrude avatar Nov 04 '24 19:11 allrude

Note: Most likely the following line does not support authentication: https://github.com/yireo/magento2-replace-tools/blob/master/src/Composer/Model/BulkReplacement.php#L108 So if the sources of (Public) Packagist are disabled, and all sources are served through Private Packagist instead (which requires authentication), this fails.

jissereitsma avatar Nov 05 '24 10:11 jissereitsma

@jissereitsma yes you're right, when I add my credentials like this on line 87, it works;

        $io->setAuthentication('repo.packagist.com', 'peterjaap', 'tokenhere');

peterjaap avatar Nov 16 '24 11:11 peterjaap