Replies: 3 comments 3 replies
-
Normally it should pick up your dependency usage just fine.
The root composer.json contains all dependencies from all packages combined. |
Beta Was this translation helpful? Give feedback.
-
I am not sure I am getting it correctly. There is a root composer.json, let say composer-R.json, and there is package A within its own composer file, let say composer-A.json. I want to check that composer-A.json does not have any extra package included which is not needed for package A. Normally, I would run tool against composer-A.json. The problem are packages B, C, D... etc... within monorepo stated in composer-A.json, they should not be downloaded from repository, they should be used from "packages" directory. Does my mumbo-jumbo makes any sense? Thanks! |
Beta Was this translation helpful? Give feedback.
-
What about connected packages? Monorepo has packages A, B, C, D... A can depend on B and C. I am driving two discussion in paralel, with Piveta as well here: maglnet/ComposerRequireChecker#366 Same idea, sam problem. Maybe if I modify my question to: "How would you use this tool against symfony/symfony?", per example here: https://github.com/symfony/symfony/blob/6.3/src/Symfony/Bridge/Doctrine/composer.json#L18 Note that current version of Symfony is 6, and let's say we have to bump it to 7.0, we can not release and then check, interdependencies have been changed. Does this modification of question helps to understand the issue? Thank you for your time as well! |
Beta Was this translation helpful? Give feedback.
-
Does anyone have any experience using this tool within monorepo setup? Care to share?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions