Modules§
Structs§
Constants§
- CACHE_
FORMAT_ VERSION - Current cache format version. Bump this when making breaking changes to the cache format.
- COMPILER_
VERSION_ HASH - Compiler version hash. Caches from different compiler versions are invalid.
- GO_
STDLIB_ HASH - Go stdlib-only content hash (typedefs/*.d.lis).
- PRELUDE_
HASH - Prelude-only content hash (prelude.d.lis).
- STDLIB_
HASH - Combined stdlib content hash. Changes to any stdlib file (prelude.d.lis or any typedefs/*.d.lis) will change this hash, invalidating all user module caches.
Functions§
- apply_
emit_ stamps - Set or clear the
emit_stampfor each module’s cache file. Missing files are skipped; undecodable (e.g. pre-bump) files are unlinked and skipped; other read errors propagate so the debug pre-write clear can hard-fail rather than leave a stale stamp over freshly-overwritten Go. - cache_
file_ name - cache_
path - compute_
emit_ artifact_ hash - Hash over the non-debug Go-artifact inputs for one module.
- compute_
module_ hash - Compute a module’s hash from its source hash and dependency hashes. This ensures transitive invalidation: if C changes, B’s module_hash changes (even though B’s source didn’t), which invalidates A’s cache.
- get_
dependency_ module_ hashes - hash_
module_ sources - is_
cache_ disabled - is_
cache_ valid - register_
cached_ module - Register a cached module in the store.
display_pathfor each cached file is recomputed from the project layout against the current cwd, so warm and cold builds render the same diagnostic paths even though the cache stores only bare names. - save_
module_ cache - try_
load_ cache