fresh-cat-90827
12/19/2022, 8:35 PM--dependencies-type
option was deprecated. The docs say:
This option is misleading and not very useful. In the future there will be a more robust way of querying and filtering dependencies.suggesting doing this in the meanwhile
./pants dependencies ::
| xargs ./pants filter --target-type=python_requirement
| xargs ./pants peek | jq -r '.[]["requirements"][]'
Have I missed a clever way to list only 3rd party or only 1st party dependencies in Pants now? 😕enough-analyst-54434
12/19/2022, 8:39 PM$ ./pants --filter-target-type=python_requirement dependencies ::
3rdparty/python#setuptools
3rdparty/python/requirements.txt
3rdparty/python/user_reqs.lock:python-default
enough-analyst-54434
12/19/2022, 8:39 PMs/goal/subsystem/
enough-analyst-54434
12/19/2022, 8:41 PM./pants list --filter-X-Y ..
can replace the old `filter`goal verbatim IIUC.enough-analyst-54434
12/19/2022, 8:41 PMfresh-cat-90827
12/19/2022, 10:10 PMpython_requirement
targets which may be fair.
./pants --filter-target-type=python_requirement dependencies ::This lets user think in higher level entities, perhaps a bit better from the consumer's perspective:
./pants dependencies --type=3rdparty ::3rd party code may be represented not as
python_requirement
then one would need to do multiple filters. But to be fair, the core Pants --type=3rdparty
wouldn't know that either. I was looking into adding a new option inside a plugin to inject it into the dependencies
goal, but was told this won't work, I'd need a new goal for this, which is something I'd like to avoid.fresh-cat-90827
12/19/2022, 10:11 PM--filter-target-type
is after all not that bad 🤔enough-analyst-54434
12/19/2022, 10:38 PM./pants list --filter-XYZ ...
is your ./pants filter ...
-alike.