Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It is easier to write an incorrect program than understand a correct one.


devel / comp.lang.php / Re: composer: dependences and dependents

SubjectAuthor
* composer: dependences and dependentsSupaPlex
`* Re: composer: dependences and dependentsArno Welzel
 `* Re: composer: dependences and dependentsSupaPlex
  `* Re: composer: dependences and dependentsArno Welzel
   `* Re: composer: dependences and dependentsSupaPlex
    `* Re: composer: dependences and dependentsArno Welzel
     `* Re: composer: dependences and dependentsSupaPlex
      `- Re: composer: dependences and dependentsArno Welzel

1
composer: dependences and dependents

<t8um63$n4e$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=546&group=comp.lang.php#546

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!mExFFs2xxSIvrM9DS6qNgA.user.46.165.242.91.POSTED!not-for-mail
From: old@gamer.s (SupaPlex)
Newsgroups: comp.lang.php
Subject: composer: dependences and dependents
Date: Wed, 22 Jun 2022 11:08:19 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t8um63$n4e$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="23694"; posting-host="mExFFs2xxSIvrM9DS6qNgA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: it-IT
 by: SupaPlex - Wed, 22 Jun 2022 09:08 UTC

$ cat .composer/config.json
{ "repositories": {
"a": {
"type": "path",
"url": "repo/a"
},
"b": {
"type": "path",
"url": "repo/b"
},
"c": {
"type": "path",
"url": "repo/c"
}
}
} $ cat repo/a/composer.json
{ "name": "my/a",
"require": {
"my/b": "dev-master"
}
} $ cat repo/b/composer.json
{ "name": "my/b",
"require": {
"my/c": "dev-master"
}
} $ cat repo/c/composer.json
{ "name": "my/c"
}

How do you see

my/a requires my/b
my/b requires my/c

But I wanted to know if there is a way to view *quickly* the whole
structure of dependences.
Above all, I would like to know the *dependents*.

I tried like this

$ COMPOSER_HOME=.composer composer show -a my/b
No composer.json found in the current directory, showing available
packages from a, b, c, packagist.org
name : my/b
descrip. :
keywords :
versions : dev-master
type : library
homepage :
source : []
dist : [path] repo/b 6de0f9e677dcab7051f94dbbf05893d0165bb826
names : my/b

requires
my/c dev-master

In summary

$ COMPOSER_HOME=.composer composer show -a my/b \
| grep my/
No composer.json found in the current directory, showing available
packages from a, b, c, packagist.org
name : my/b
names : my/b
my/c dev-master

It tell me that

my/b requires my/c

but it doesn't tell me that

my/b is required from my/a (this is the thing that interests me most).

For example, if I have to remove a package (obsolete package), how can I
verify that it does not have dependents?

Re: composer: dependences and dependents

<jhggfvF10g9U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=547&group=comp.lang.php#547

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.lang.php
Subject: Re: composer: dependences and dependents
Date: Wed, 22 Jun 2022 14:33:03 +0200
Lines: 14
Message-ID: <jhggfvF10g9U1@mid.individual.net>
References: <t8um63$n4e$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net eyHJUO/s9aLYSo4rHbHNFwKr1rqsUZPvQrShpcRcm3IA1KKJE+
Cancel-Lock: sha1:eLrHad+o6vKuS9muNUolj1vnwYU=
Content-Language: de-DE
In-Reply-To: <t8um63$n4e$1@gioia.aioe.org>
 by: Arno Welzel - Wed, 22 Jun 2022 12:33 UTC

SupaPlex:

[...]
> For example, if I have to remove a package (obsolete package), how can I
> verify that it does not have dependents?

You can try: composer show --tree

--
Arno Welzel
https://arnowelzel.de

Re: composer: dependences and dependents

<t8v4f0$18r6$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=548&group=comp.lang.php#548

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!mExFFs2xxSIvrM9DS6qNgA.user.46.165.242.91.POSTED!not-for-mail
From: old@gamer.s (SupaPlex)
Newsgroups: comp.lang.php
Subject: Re: composer: dependences and dependents
Date: Wed, 22 Jun 2022 15:12:00 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t8v4f0$18r6$1@gioia.aioe.org>
References: <t8um63$n4e$1@gioia.aioe.org> <jhggfvF10g9U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="41830"; posting-host="mExFFs2xxSIvrM9DS6qNgA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: it-IT
X-Notice: Filtered by postfilter v. 0.9.2
 by: SupaPlex - Wed, 22 Jun 2022 13:12 UTC

Il 22/06/22 14:33, Arno Welzel ha scritto:
> SupaPlex:
>
> [...]
>> For example, if I have to remove a package (obsolete package), how can I
>> verify that it does not have dependents?
>
> You can try: composer show --tree
>
>
>
>

Composer could not find a composer.json file
To initialize a project, please create a composer.json file as described
in the https://getcomposer.org/ "Getting Started" section

Re: composer: dependences and dependents

<jhgm0bF1stnU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=549&group=comp.lang.php#549

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.lang.php
Subject: Re: composer: dependences and dependents
Date: Wed, 22 Jun 2022 16:07:07 +0200
Lines: 27
Message-ID: <jhgm0bF1stnU1@mid.individual.net>
References: <t8um63$n4e$1@gioia.aioe.org> <jhggfvF10g9U1@mid.individual.net>
<t8v4f0$18r6$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 0ZHHW0KvzjFIxLwBsaQ3OAVEfiu/ol5OpunIrmMDUgK3g6rDOb
Cancel-Lock: sha1:R6U8RvsgTg+xHXH1OzDa3p+D0Mw=
Content-Language: de-DE
In-Reply-To: <t8v4f0$18r6$1@gioia.aioe.org>
 by: Arno Welzel - Wed, 22 Jun 2022 14:07 UTC

SupaPlex:

> Il 22/06/22 14:33, Arno Welzel ha scritto:
>> SupaPlex:
>>
>> [...]
>>> For example, if I have to remove a package (obsolete package), how can I
>>> verify that it does not have dependents?
>>
>> You can try: composer show --tree
>>
>>
>>
>>
>
> Composer could not find a composer.json file
> To initialize a project, please create a composer.json file as described
> in the https://getcomposer.org/ "Getting Started" section

Why do you try to use Composer outside a folder with composer.json?

Of course you need to call this inside repo/a, repo/b and repo/c.

--
Arno Welzel
https://arnowelzel.de

Re: composer: dependences and dependents

<t8v9bt$1pci$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=550&group=comp.lang.php#550

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!mExFFs2xxSIvrM9DS6qNgA.user.46.165.242.91.POSTED!not-for-mail
From: old@gamer.s (SupaPlex)
Newsgroups: comp.lang.php
Subject: Re: composer: dependences and dependents
Date: Wed, 22 Jun 2022 16:35:41 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t8v9bt$1pci$1@gioia.aioe.org>
References: <t8um63$n4e$1@gioia.aioe.org> <jhggfvF10g9U1@mid.individual.net>
<t8v4f0$18r6$1@gioia.aioe.org> <jhgm0bF1stnU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="58770"; posting-host="mExFFs2xxSIvrM9DS6qNgA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: it-IT
X-Notice: Filtered by postfilter v. 0.9.2
 by: SupaPlex - Wed, 22 Jun 2022 14:35 UTC

Il 22/06/22 16:07, Arno Welzel ha scritto:
> Why do you try to use Composer outside a folder with composer.json?

why shouldn't I do it?

Re: composer: dependences and dependents

<jhgnpaF264jU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=551&group=comp.lang.php#551

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.lang.php
Subject: Re: composer: dependences and dependents
Date: Wed, 22 Jun 2022 16:37:30 +0200
Lines: 15
Message-ID: <jhgnpaF264jU1@mid.individual.net>
References: <t8um63$n4e$1@gioia.aioe.org> <jhggfvF10g9U1@mid.individual.net>
<t8v4f0$18r6$1@gioia.aioe.org> <jhgm0bF1stnU1@mid.individual.net>
<t8v9bt$1pci$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net nRasRUC2N4JLujJHTQVuVAYuYwT/wk3/RCfzLLILd9hitXsxbH
Cancel-Lock: sha1:+g0BEqAoNr/xfNbWS8frmlpeEpk=
Content-Language: de-DE
In-Reply-To: <t8v9bt$1pci$1@gioia.aioe.org>
 by: Arno Welzel - Wed, 22 Jun 2022 14:37 UTC

SupaPlex:

> Il 22/06/22 16:07, Arno Welzel ha scritto:
>> Why do you try to use Composer outside a folder with composer.json?
>
> why shouldn't I do it?

Because composer.json is the file where your dependencies are defined.

Also see: <https://getcomposer.org/doc/01-basic-usage.md>

--
Arno Welzel
https://arnowelzel.de

Re: composer: dependences and dependents

<t8vbif$tvi$2@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=552&group=comp.lang.php#552

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!mExFFs2xxSIvrM9DS6qNgA.user.46.165.242.91.POSTED!not-for-mail
From: old@gamer.s (SupaPlex)
Newsgroups: comp.lang.php
Subject: Re: composer: dependences and dependents
Date: Wed, 22 Jun 2022 17:13:19 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t8vbif$tvi$2@gioia.aioe.org>
References: <t8um63$n4e$1@gioia.aioe.org> <jhggfvF10g9U1@mid.individual.net>
<t8v4f0$18r6$1@gioia.aioe.org> <jhgm0bF1stnU1@mid.individual.net>
<t8v9bt$1pci$1@gioia.aioe.org> <jhgnpaF264jU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="30706"; posting-host="mExFFs2xxSIvrM9DS6qNgA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: it-IT
 by: SupaPlex - Wed, 22 Jun 2022 15:13 UTC

Il 22/06/22 16:37, Arno Welzel ha scritto:
> SupaPlex:
>
>> Il 22/06/22 16:07, Arno Welzel ha scritto:
>>> Why do you try to use Composer outside a folder with composer.json?
>>
>> why shouldn't I do it?
>
> Because composer.json is the file where your dependencies are defined.
>
> Also see: <https://getcomposer.org/doc/01-basic-usage.md>
>
>

What dependencies should i define?
The info I want is for packages global level, not for single project
(*/composer.json).

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

hQGMAyHa6HqE1N3qAQv+JiLsavPR603Uiqd2XvBLMV0UIp+6RmdSADu6E+MVIf/H
xWGPN68rIfRxVoQptDQRX8nW3EkA7/2agJKLhjbiNs6MuWz9M62pBcGArL1q2p7T
tiHqtPpW5nVN87hPZPi/NO6Lb/B6mW0Eytj4PsAL977oUeK1iFaxnMSGCfeBCnH3
yZVI1CoM4e5bSA668avRxMItFeIkY0+uRhPzHcvrT1/MJy/NDdil9sHoJGDj0YC/
5nwfP8FtkbU31N3xsH/2jW7OtGllN3ef1zNbiCnrNmLfMWEjPKiU451qU8qpC7mZ
WQ4xwprnxb2gTs4JxqLNEuWSRIz34K4sDb215edkWdlY3n8xk7kABscyaLv9ZP2w
as2n2dgp7o3VAR+skNh8Qp6jDrwpa8MSxhRzOw3QX+Nq3cGtm1TQeTHLvJ3n5Dzi
0xS93r+cUM6iDEtG2gXWoJUKdlmDVyp7fetVN4/6iybN6BdxWtlA7wG6b+Tq494T
R9B5fWnwUMQJIFo3rVlj0oEB1N3inMgJmdGriviq27JtTcoAhQq6ElnJ9DwZAmqT
j9ffYkhB6DuX4NsFDNg/MU6m+UAqEpySIX2Cm4pIjmEicQGsu1EhupfaA+SFFDA3
kJByFSdczDn/DJwln+iXwdNTOhDs7G11o0NxaLbi6tEL+dlEsolXMAOEmu9s0oiP
Nsg=
=hSlH
-----END PGP MESSAGE-----

Re: composer: dependences and dependents

<jhlljoFqgl7U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=553&group=comp.lang.php#553

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.lang.php
Subject: Re: composer: dependences and dependents
Date: Fri, 24 Jun 2022 13:31:04 +0200
Lines: 32
Message-ID: <jhlljoFqgl7U1@mid.individual.net>
References: <t8um63$n4e$1@gioia.aioe.org> <jhggfvF10g9U1@mid.individual.net>
<t8v4f0$18r6$1@gioia.aioe.org> <jhgm0bF1stnU1@mid.individual.net>
<t8v9bt$1pci$1@gioia.aioe.org> <jhgnpaF264jU1@mid.individual.net>
<t8vbif$tvi$2@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 2A2bIC4wGjDP59Wt+IRHwgM6PeBoCfsOP8yEdowTpak9Z2QvW2
Cancel-Lock: sha1:s8gMfRLdcg9Rxi2ah+ZYoq0Adts=
Content-Language: de-DE
In-Reply-To: <t8vbif$tvi$2@gioia.aioe.org>
 by: Arno Welzel - Fri, 24 Jun 2022 11:31 UTC

SupaPlex:

> Il 22/06/22 16:37, Arno Welzel ha scritto:
>> SupaPlex:
>>
>>> Il 22/06/22 16:07, Arno Welzel ha scritto:
>>>> Why do you try to use Composer outside a folder with composer.json?
>>>
>>> why shouldn't I do it?
>>
>> Because composer.json is the file where your dependencies are defined.
>>
>> Also see: <https://getcomposer.org/doc/01-basic-usage.md>
>>
>>
>
> What dependencies should i define?
> The info I want is for packages global level, not for single project
> (*/composer.json).

There is no "global" level.

Each composer.json defines the dependencies for that very project. There
are no "global" dependencies covering multiple projects. If a project
wants to uses a component, it *must* have a reference for that in
composer.json. The specific version used when installing the components
using "composer install" are then recorded in composer.lock.

--
Arno Welzel
https://arnowelzel.de

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor