KTSTR_CACHE_DIR_ENV

Constant KTSTR_CACHE_DIR_ENV 

Source
pub const KTSTR_CACHE_DIR_ENV: &str = "KTSTR_CACHE_DIR";
Expand description

Name of the environment variable that overrides ktstr’s cache root directory (kernel-build cache, btf-anchor cache, blob cache, etc.). Empty / unset falls back to the per-user default (typically $HOME/.cache/ktstr). Heavy test usage — crate::test_support::test_helpers::IsolatedCacheDir sets it to a temp dir per-test so cache reads don’t leak host state into the test, and post-test the original value is restored via crate::test_support::test_helpers::EnvVarGuard.