hundreds-carpet-28072
05/22/2025, 4:19 PM--changed-since
flag? I can of course extract that logic with pants list --changed-since ::
and append items, but is there a nice way to provide key value pairs to this graph e.g. arbritary_file.txt: ["other", "dependent", "files"]
some-insurance-58590
05/22/2025, 8:38 PMdependencies
option on the target
Here's an example..
Folder structure (both text files are empty)
pants-example
├── BUILD
├── example1.txt
└── example2.txt
The BUILD file:
file(
name="example1",
source="example1.txt",
dependencies=[":example2"]
)
file(
name="example2",
source="example2.txt",
)
and using pants filedeps
to see the dependencies:
$ pants filedeps --filedeps-transitive pants-example/example1.txt
pants-example/BUILD
pants-example/example1.txt
pants-example/example2.txt
hundreds-carpet-28072
05/23/2025, 9:24 AMdir -> target
relationship here? e.g. in the case of multiple dirs containing Dockerfiles which aren’t handled by Pants targets, I’ll like to explicitly set target dependenciessome-insurance-58590
05/23/2025, 5:34 PMtarget(...)
might help get what you want https://www.pantsbuild.org/dev/reference/targets/targetsome-insurance-58590
05/23/2025, 5:36 PMfiles(...)
in some way like this:
files(
name="some_dir",
sources=["some_dir/*.txt"]
)
files(
name="other_dir",
sources=["other_dir/*.txt"]
)
https://www.pantsbuild.org/dev/reference/targets/files