refined-addition-53644
12/07/2021, 1:25 PMresource
target using a directory which has multiple directories inside it? In general, whatever examples I see in docs are using single or multiple files, but hardly with directories.curved-television-6568
12/07/2021, 1:47 PMBUILD
files at all levels. But **
is a recursive wildcard pattern, so you can use things like sources=["conf/**/*.cfg"]
when the alternative is not viable.refined-addition-53644
12/07/2021, 2:05 PMpants
, I should put a BUILD file inside this directory?refined-addition-53644
12/07/2021, 2:06 PMcurved-television-6568
12/07/2021, 2:45 PMresources
target for the whole csv tree, if they always go together as a bundle.
# BUILD
resources(
name="csv_resources",
sources=["csv-files/**/*.csv"]
)
See https://www.pantsbuild.org/v2.9/docs/resources regarding resources
vs files
in case the latter is more appropriate for your use case.curved-television-6568
12/07/2021, 2:46 PM