loud-laptop-96885
06/07/2024, 4:40 PMfiles target. My directory structure looks as follows
path/to/service
|_ /cloud/deployment-config
| |_ config.yaml
|_ some_module.py
|_ BUILD
My BUILD file has the following targets
python_sources()
pex_binary(...)
docker_image(...)
files(
name="deployment-config",
sources=["cloud/**/*.yaml"],
)
I have have an uncommitted change in the config.yaml . When executing pants list --changed-since="$(git rev-parse HEAD)" --filter-target-type="files" , I expected the files target to show up. However, pants tells me: No targets were matched in goal list.
Can someone explain, what I am doing wrong? Or if my expectations are wrong?loud-laptop-96885
06/07/2024, 4:49 PMfiles to file (singular) in --filter-target-type . Then I get the changes. Sorry for bothering you. leaving this post for referencecareful-address-89803
06/15/2024, 4:40 AMfiles target is actually a target generator that creates multiple file targets. That's pretty confusing, though.