Function cacheHitAndWatch [src]

Clears previous watch inputs, if any, and then populates watch inputs from the full set of files picked up by the cache manifest. Must be accompanied with writeManifestAndWatch.

Prototype

pub fn cacheHitAndWatch(s: *Step, man: *Build.Cache.Manifest) !bool

Parameters

s: *Stepman: *Build.Cache.Manifest

Source

pub fn cacheHitAndWatch(s: *Step, man: *Build.Cache.Manifest) !bool { const is_hit = man.hit() catch |err| return failWithCacheError(s, man, err); s.result_cached = is_hit; // The above call to hit() populates the manifest with files, so in case of // a hit, we need to populate watch inputs. if (is_hit) try setWatchInputsFromManifest(s, man); return is_hit; }