average-sugar-76469
01/14/2019, 10:28 PMversioned_target.cache_key.hash.split(-1)
versioned_target.target.playload.fingerprint()
aloof-angle-91616
01/14/2019, 10:31 PMself.invalidated()
call, the vt
usually refers to a VersionedTarget
-- see https://github.com/pantsbuild/pants/blob/b0d59b440a2e616eb7246325dc021bc186f758a5/src/python/pants/invalidation/cache_manager.py#L170average-sugar-76469
01/14/2019, 10:32 PMvt
which I replaced with virtual_target
, but versioned_target
is likely the correct expansion.aloof-angle-91616
01/14/2019, 10:35 PMvt.target.payload.fingerprint()
is just a cache key for the current target's payload, which may contain sources, etc. the cache key for the versioned target may be calculated based on dependencies or other things, again depending on the task. the cache key is what is specifically used for invalidation for self.invalidated()
-- i think it can be considered a superset (meaning strictly more granular) than the target's .fingerprint()
(which is calculated from the payload as you have above, usually -- this can be modified as well), but it again depends on the task.