yireo / magento2-replace-tools

112 stars 19 forks source link

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

Open peterjaap opened 1 month ago

peterjaap commented 1 month ago

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 commented 1 month ago

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?

jissereitsma commented 1 month ago

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?

peterjaap commented 1 month ago

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

allrude commented 2 weeks ago

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

jissereitsma commented 2 weeks ago

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.

peterjaap commented 6 days ago

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

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