Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer update root package

I want to make the system updates based on composer

With updating dependencies no special problems, but how to update the root package, it is not clear

I'm trying to understand the code composer and so far without success

I think a root project put into dependencies and leave only the bare minimum or download the project archive from the github and manually remake it

Maybe someone faced with such a task

like image 899
ghost404 Avatar asked Nov 11 '22 19:11

ghost404


1 Answers

I don't think there is any way to update the main project.

This is when you've, say, installed a project with composer create-project proj/name . * or similar? Running composer update of course updates the dependencies, but nothing exists to update the project itself.

One way to do it might be as you say, and make the root project nothing but a composer.json file that lists the dependencies, and move the project to operate as a dependency. Bit of a change to the structure though, so this mightn't be possible.

like image 52
Sam Wilson Avatar answered Dec 24 '22 09:12

Sam Wilson