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). - Input
File - Contribution of one file matched by an
inputspattern (CACHE-006). - Predecessor
Streams - Contribution of one hard-edge predecessor’s captured streams
(
CACHE-007).
Functions§
- contribute_
action - Write
actionintohasherperCACHE-005. - contribute_
env - Write the environment contribution into
hasherperCACHE-008and the env-ordering clause ofCACHE-009. - contribute_
input_ files - Write
filesintohasherperCACHE-006and the file- ordering clause ofCACHE-009. - contribute_
predecessors - Write
predecessorsintohasherperCACHE-007and the predecessor-ordering clause ofCACHE-009.