Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #19160
| From | paul <sk@i.p> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: [composer] duplicate vendor |
| Date | 2022-11-15 15:30 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <tl07pa$f6k$1@gioia.aioe.org> (permalink) |
| References | (1 earlier) <jtcbceFaq6aU1@mid.individual.net> <tkviks$be6$1@gioia.aioe.org> <jthcphF5hp8U1@mid.individual.net> <tl004t$pmi$1@gioia.aioe.org> <jthh3tF630dU3@mid.individual.net> |
Il 15/11/22 14:05, Arno Welzel ha scritto:
> paul, 2022-11-15 13:19:
>
>> Il 15/11/22 12:51, Arno Welzel ha scritto:
>>> "local" composer.json
>>
>> ????
>
> From your original post:
>
> + cat a/composer.json
> + cat b/composer.json
> + cat c/composer.json
>
> So either you have three separate projects "a", "b" and "c" which each
> use Composer *or* you have one project with the packages "a", "b" and
> "c" - but then you should also only have *one* composer.json for your
> project and treat a, b and c just as parts of your project.
Bah... it will be like you say... maybe...
Anyway look a little what I did
Il 12/11/22 11:38, paul ha scritto:
> + cat b/composer.json
> {
> "name": "test/b",
> "version": "1",
> "require": {
> "test/c": "^1.0"
> }
> }
$ cat new-composer.json
{
"config": {
"vendor-dir": "internal-vendor"
},
"name": "test/b",
"version": "1",
"require": {
"test/c": "^1.0"
}
}
$ mv new-composer.json b/composer.json
$ find b -name *vendor*
b/vendor
$ composer update --working-dir=b
$ find b -name *vendor*
b/vendor
b/internal-vendor
$ rm -rf b/vendor
$ find b -name *vendor*
b/internal-vendor
OK!!!!!!
Il 12/11/22 11:38, paul ha scritto:
> + find | grep vendor/test/c
> ./b/vendor/test/c
> ./a/vendor/test/c
$ find | grep vendor/test/c
./b/internal-vendor/test/c
./a/vendor/test/c
$ find | grep vendor/test/c | grep -v internal-vendor
./a/vendor/test/c
It seems that it is fine.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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