pub fn poisonCache(graph: *Graph) void
Indicates that the configure logic had side effects, or otherwise did something that could not be tracked by the cache system.
See CachePoison documentation for more details.
CachePoison
As an alternative to calling this function, consider these APIs instead:
dependOnFileContents
graph: *Graph
214 215 216 217 218 219 220 221
pub fn poisonCache(graph: *Graph) void { switch (graph.cache_poison) { .pure => graph.cache_poison = .poisoned, .poisoned => return, .disallowed => @panic("cache poisoned"), .ignored => log.warn("ignoring cache poisoning", .{}), } }
Indicates that the configure logic had side effects, or otherwise did something that could not be tracked by the cache system.
See
CachePoisondocumentation for more details.As an alternative to calling this function, consider these APIs instead:
dependOnFileContents