Skip to main content

Module components

Module components 

Source
Expand description

Canonical serialisation of cache-key components (CACHE-005..009).

Each function here writes a single component into the running Hasher in the canonical byte sequence the spec mandates. Multi-item components (input files, predecessors, env entries) enforce their ordering rule inside the function: callers MAY pass items in any order; the function sorts them before contribution.

Structs§

EnvContribution
Resolved environment contribution (CACHE-008).
InputFile
Contribution of one file matched by an inputs pattern (CACHE-006).
PredecessorStreams
Contribution of one hard-edge predecessor’s captured streams (CACHE-007).

Functions§

contribute_action
Write action into hasher per CACHE-005.
contribute_env
Write the environment contribution into hasher per CACHE-008 and the env-ordering clause of CACHE-009.
contribute_input_files
Write files into hasher per CACHE-006 and the file- ordering clause of CACHE-009.
contribute_predecessors
Write predecessors into hasher per CACHE-007 and the predecessor-ordering clause of CACHE-009.