Re: [composer] duplicate vendor

Arno Welzel <[email protected]>
Newsgroups comp.lang.php
Message-ID <[email protected]>
paul, 2022-11-15 09:29:

> Il 13/11/22 14:56, Arno Welzel ha scritto:
>> Composer is not intended to be used this way. Usually you have exactly
>> *one*  composer.json in your project and not multiple ones.
> 
> A, B, and C would be three distinct projects (packages) IHMO, each with 
> their respective composer.json

In that case your question makes no sense:

"Can the directory *a* contains *vendor/test/c* be prevented?"

If a, b and c are independent projects they won't influence each other.
However if they are part of one single project then there must not be a
"local" composer.json, because Composer is not intended to be used as a
"local" package manager inside a package.

-- 
Arno Welzel
https://arnowelzel.de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.