fresh-cat-90827
12/08/2022, 5:12 PMfresh-cat-90827
12/08/2022, 5:12 PMhelloworld/translator/translator.py
and run:
โฏ ./pants --changed-since=HEAD --changed-dependees=direct list
helloworld/greet/greeting.py:lib
helloworld/translator/translator.py:lib
helloworld/translator/translator_test.py:tests
The greeting.py
is reported as changed because it depends on `translator.py`:
โฏ ./pants paths --from=helloworld/greet/greeting.py --to=helloworld/translator/translator.py
[
[
"helloworld/greet/greeting.py:lib",
"helloworld/translator/translator.py:lib"
]
]
Is it possible when asking for changed targets to tell Pants to ignore certain areas of the dependency graph, e.g. "pretend" that the only source location is helloworld/greet
? With this limit set, there would be no changes reported as helloworld/translator
is not taken into account.
The list --filter-address-regex=...
filters the output only, not the "discoverable" targets. The --source-root-patterns=[]
doesn't seem to work either, I am not sure if that's even valid to set roots at runtime? ๐fresh-cat-90827
12/08/2022, 5:14 PM./pants dependees
calls to determine who depends on what and then do filtering in multiple ./pants
calls, but was hoping to get a more concise solution?hundreds-father-404
12/08/2022, 5:18 PMIs it possible when asking for changed targets to tell Pants to ignore certain areas of the dependency graph, e.g. "pretend" that the only source location is helloworld/greet?No. Are you going after this? https://github.com/pantsbuild/pants/issues/14243
fresh-cat-90827
12/08/2022, 5:19 PMfresh-cat-90827
12/08/2022, 5:24 PMfresh-cat-90827
12/08/2022, 5:28 PM->
indicating "importing from", e.g. file2.py
imports from file1.py
dir1/
file2.py -> file1.py
file1.py (with changes made) -> main.py
main.py -> dir2/lib.py
dir2/
lib.py (with changes made)
Running ./pants --changed-since=HEAD --changed-dependees=direct list --option-setting-roots-locations="dir1/"
should report file1.py
and file2.py
onlyfresh-cat-90827
12/08/2022, 5:33 PMdir1/BUILD/python_sources()
only target