https://pantsbuild.org/ logo
#general
Title
# general
w

wonderful-iron-54019

12/09/2019, 4:54 PM
Hey folks, im writing my own target for publish config settings and i'd like to mark the target as needing changes when the config settings change. More context in thread.
Currently the target depends on a python library target, so it gets triggered when source changes. However we also have folders:
Copy code
config/
  dev/
  staging/
  prod/
that contain config settings that don't get packaged up with the library. I want the config job to return during a
pants --changed-parent=HEAD list
call when some of those files change
not entirely sure how to do that. adding a
sources
prop doesn't seem to work
although i may have configured it improperly
h

happy-kitchen-89482

12/09/2019, 11:15 PM
Is this something you can't achieve with a vanilla
resources
target? Are you also planning to write a task that acts on your custom target?
Can you post your target source code?