Documentation
¶
Overview ¶
Package outputguard prevents generators from overwriting reviewed or generated inputs that participate in the same one-way build graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
Validate rejects any target that is identical to, contains, or is contained by a protected input. Existing symlinks and hard links are resolved before comparison; paths that do not exist resolve through their longest existing ancestor.
func ValidateRepoTargetAllowlist ¶
ValidateRepoTargetAllowlist permits arbitrary temporary outputs outside the repository, but restricts in-repository writes to explicit canonical delivery targets. This closes transitive source-graph gaps without requiring every future input file to be rediscovered by each generator guard.