Skip to main content

Module cache

Module cache 

Source
Expand description

Skip-if-unchanged cache helpers: content-hash markers, a cross-process build lock, and directory utilities.

Functions§

clear_directory
Remove and recreate a directory.
dir_has_content
Whether a directory exists and contains at least one entry.
file_hash
Compute a fast, position-weighted hash of a file’s contents.
marker_matches
Whether a marker file exists and its contents equal expected_hash.
with_lock
Run f while holding an exclusive cross-process lock on lock_path.
write_marker
Write hash to a marker file.