Skip to main content

cache_path

Function cache_path 

Source
pub fn cache_path() -> Option<PathBuf>
Expand description

Resolve the on-disk cache path under the CodeWhale catalog state dir.

Under cfg(test) this is confined the same way settings and config paths are: resolve_state_dir lives in codewhale-config, which is compiled as a plain dependency here and so has no view of this crate’s isolated test root. Without this shield a test that never asked for the developer’s catalog read their real ~/.codewhale/catalog and rendered against whatever models they last fetched (#5359).