Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Composer install #69

Open
alinceDev opened this issue Dec 11, 2023 · 2 comments
Open

[Question] Composer install #69

alinceDev opened this issue Dec 11, 2023 · 2 comments

Comments

@alinceDev
Copy link

alinceDev commented Dec 11, 2023

Hi,

I don't get the point here. Say we have the following structure :

|- monrepo
    |- packages
         |- mylib
            composer.json
    |- web
         |- app
            composer.json
            composer.lock
composer.json

So when I release a version, all the dependencies are updated, but not the composer.lock. So in a CI I can't do a composer install.
How do you handle this ?
I also read this blog but not helped me https://blog.logrocket.com/hosting-all-your-php-packages-together-in-a-monorepo/

Thanks

@kayw-geek
Copy link
Collaborator

kayw-geek commented Dec 12, 2023

Usually, The structure as following:

|- monrepo
    |- packages
         |- mylib1
            composer.json
         |- mylib2
            composer.json
composer.json

merge composer context of all packages into the main composer.json (installed monorepo in this)

In the other project

|- web
        |- app
           composer.json
           composer.lock

Install own libs

@alinceDev
Copy link
Author

Ok, in my case I have this structure :

|- monrepo
    |- packages
         |- myBundle
            composer.json
    |- web
         |- app
            composer.json => myBundle
            composer.lock
         |- app2
            composer.json => myBundle
            composer.lock
         |- app3
            composer.json => myBundle
            composer.lock
          ......
composer.json

In that case, monorepo-builder is not adapted for that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants