Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #19154

[composer] duplicate vendor

Path csiph.com!aioe.org!3udBC6ShDg3KaHy/T7q5Mw.user.46.165.242.75.POSTED!not-for-mail
From paul <sk@i.p>
Newsgroups comp.lang.php
Subject [composer] duplicate vendor
Date Sat, 12 Nov 2022 11:38:44 +0100
Organization Aioe.org NNTP Server
Message-ID <tknt3k$1bj$2@gioia.aioe.org> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Info gioia.aioe.org; logging-data="1395"; posting-host="3udBC6ShDg3KaHy/T7q5Mw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2
Content-Language it-IT
X-Notice Filtered by postfilter v. 0.9.2
Xref csiph.com comp.lang.php:19154

Show key headers only | View raw


I state that my question is not mainly about php, but composer.

Here's the question ...

+ cat .config/composer/config.json
{
     "repositories": {
         "b": {
             "type": "path",
             "url": "$PWD/b"
         },
         "c": {
             "type": "path",
             "url": "$PWD/c"
         }
     }
}

+ cat a/composer.json
{
     "require": {
         "test/b": "^1.0"
     }
}

+ cat b/composer.json
{
     "name": "test/b",
     "version": "1",
     "require": {
        "test/c": "^1.0"
     }
}

+ cat c/composer.json
{
     "name": "test/c",
     "version": "1"
}

As you can see, only the *test/b* package requires the *test/c* package.
However, as you will see below, the *vendor/test/c* directory I find it 
both under directory *b*, and under the directory *a*.

+ composer update --working-dir=b
+ composer update --working-dir=a
+ find | grep vendor/test/c
./b/vendor/test/c
./a/vendor/test/c

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

-----BEGIN PGP MESSAGE-----

hQGMAyHa6HqE1N3qAQv+KYYFpZIEv8f+2NW2oSuvaVwYTJNGpU/w4sQNTVjrMkS7
gaqXzeyhD25Hgcgw844fWr4E0rW9OOrVu25/qz9QefpJUpzE+UQfwU0oDbWh/YvK
EEP61Nq0pFLrTojuA0rd0vVIRlQvbw4NdmLZlolUtdqaeqJNOe5HTW00gSL3g3GJ
LgwQpcixqZfvRvPeB5sMNzmgYKQsgQ3SNRgO2vFFavZNa/IBTcwIHTuh/WW/1+tc
NU1uNMUZyGPR6PM6MXTKWoRdS+L32WzrIaYd+zv92j9HnYM4zK/4ZzVO+Bfii0ni
XrnBF1RAn6XwzoUf1R9GncpVHJnkFw1HZ1naypcmbb/uX2wCyei35GZa6/QKQPWb
rxC5EG6o+Ry0+xaK9TZVWc5iFJ/WezufzoaAIL4yo8iXdcV/frD8252RKoDnx5qY
TMZKG1e181NYDqAIJRPQlwdGF3mMukyD7R7pDm+1RaUG9r0az4hQ7pt+OUyU0A70
IE5mnbr6G90nmfVRp/sK0oEBUKTvqP16qewTm9O+bxUA3jvgg8Mg93/6lTKLfOmC
K4wJ9+Op0fsBjMY1dbz/hrTIyYdiMPC5wYpvSmW8gN3O+AeFIs3DeRC2TanFS6Hw
+SZAIQFGLCz9aEZ4tLSZWioCFZsvWVTVJCv5E+1NEcgBIy7czVw0QaWhlHZsH+Nt
RB4=
=plmD
-----END PGP MESSAGE-----

Back to comp.lang.php | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[composer] duplicate vendor paul <sk@i.p> - 2022-11-12 11:38 +0100
  Re: [composer] duplicate vendor Arno Welzel <usenet@arnowelzel.de> - 2022-11-13 14:56 +0100
    Re: [composer] duplicate vendor paul <sk@i.p> - 2022-11-15 09:29 +0100
      Re: [composer] duplicate vendor Arno Welzel <usenet@arnowelzel.de> - 2022-11-15 12:51 +0100
        Re: [composer] duplicate vendor paul <sk@i.p> - 2022-11-15 13:19 +0100
          Re: [composer] duplicate vendor Arno Welzel <usenet@arnowelzel.de> - 2022-11-15 14:05 +0100
            Re: [composer] duplicate vendor paul <sk@i.p> - 2022-11-15 15:30 +0100
              Re: [composer] duplicate vendor paul <sk@i.p> - 2022-11-21 09:56 +0100

csiph-web