Hey. I am using pants 2.19.0 and am having difficu...
# general
l
Hey. I am using pants 2.19.0 and am having difficulties understanding the behavior of the
files
target. My directory structure looks as follows
Copy code
path/to/service
|_ /cloud/deployment-config
|  |_ config.yaml
|_ some_module.py
|_ BUILD
My
BUILD
file has the following targets
Copy code
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?
ok. already found it. I changed
files
to
file
(singular) in
--filter-target-type
. Then I get the changes. Sorry for bothering you. leaving this post for reference
c
I think this is because the
files
target is actually a target generator that creates multiple
file
targets. That's pretty confusing, though.