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

witty-crayon-22786

01/14/2019, 10:30 PM
a target's fingerprint isn't transitive into its dependencies... but a cache key might be, depending on the task that created it
a

average-sugar-76469

01/14/2019, 10:37 PM
Test my understanding If the targets transitive dependencies changed, the cache_key will change, but the fingerprint will not change?
w

witty-crayon-22786

01/14/2019, 10:38 PM
if the Task uses
self.invalidated(.., invalidate_dependents=True)
, yes
if
invalidate_dependents=False
, i believe the cachekey will not be transitive (i don't know if it will be exactly equal to the fingerprint though... wouldn't assume that)
oh, yea: it won't be equal to the fingerprint, because it will include the Task's fingerprint: https://github.com/pantsbuild/pants/blob/master/src/python/pants/task/task.py#L281
2 Views