contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
86 stars 33 forks source link

Can't install packages with contao-manager when I have a private package in my composer.json #826

Open biowebfr opened 1 month ago

biowebfr commented 1 month ago

Contao Manager v1.8.9.

Contao-manager throws me an error when trying to install a package when I have a non-related private package installed: image

But I don't get any error when not using contao-manager.phar.php but directly composer like so:

composer require markocupic/contao-altcha-antispam --no-update --no-scripts --prefer-stable --sort-packages --no-ansi --no-interaction

Here is my composer.json part with my private package:

     "repositories": [
       {
             "type": "git",
             "url": "git@github.com:BioWeb-git/bioweb-bundle.git"
         }
     ],
     "require": {
         "bioweb/bioweb-bundle": "dev-master",
         ....
      },

Please note that I'm under windows 11, and a colleague of mine doesn't seem to have the issue under MacOS.

zoglo commented 1 month ago

Works fine for me if I am using a PAT + the url to the repo.

Did you try using:https://github.com/BioWeb-git/bioweb-bundle.git instead?

biowebfr commented 1 month ago

Thanks for your answer.

I use PAT too, but the error persists:

image

image

zoglo commented 1 month ago

Did you try disabling the composer cloud?

biowebfr commented 1 month ago

Thank you for your answer.

It was already disabled. I tried with it enable and same error.

aschempp commented 1 month ago

It will not work with the cloud, but it should work locally.

The most likely reason I can think of, is that your web server is not running as the same user as your CLI, and might not have the SSH keys to access the private repository.