I work with October CMS, but this is based on Laravel and what I see Jobs is nearly the same.
I go to my folder, clone the Plugin I need. This Plugin has a composer.json with some required Laravel Plugins.
So I try to perform the composer updtae to load them.
But composer does not run. I also do not get any real error message, so I have no idea what is happening.
@kay899 see my comment. Depending on your requirements you first need to go to the correct path, than execute the command. The same way you do a git clone in your example code.
@kay899 Why are you trying to run Composer like this? What happens if Composer updates a package to a version that’s incompatible with your application and introduces a bug?
I know that this is a risk, but in the moment I don't see another solution.
AsI said I am working with October CMS and the use of Private Plugins is sometimes very hard. As long as they don't have any dependencies with other packages it's ok juts to install and update them with git.
But now I have a Vouchershop package which needs a " gloudemans/shoppingcart" plugin. I have added this to composer.json of my Package and now I somehow have to start the process to load this package.
@KAY899 - @kay899 If you’re installing a plugin, install it and run composer update then? You only need to do this once: when you’re installing the package.
You should not but updating packages on a schedule. For example, if a package changes location or is removed from its repository, the next time your scheduled tasks updates dependencies, it’s either going to error or remove that package from your server. Either way, your application is going to crash if it depends on it.