Preserve local prerequisite history during reference preparation
This commit is contained in:
@@ -111,6 +111,13 @@ func referenceHistoryRequirements(cfg *config.Config, effective artifacts.Effect
|
||||
for _, work := range item.Analysis.ExecutionOrder {
|
||||
keys = append(keys, work.Key)
|
||||
}
|
||||
// Local checkpoints still rely on their ordinary input evidence. Keep
|
||||
// their history available across reference preparation and revalidation.
|
||||
for _, reused := range item.Analysis.ReusedCurrent {
|
||||
if reused.Reason != "supplied" {
|
||||
keys = append(keys, reused.Key)
|
||||
}
|
||||
}
|
||||
}
|
||||
requirements, err := artifacts.PreviousArtifactRequirementsForKeys(configuredScriptoriumArtifacts(cfg), keys)
|
||||
// An explicit empty set distinguishes no planned history from the ordinary
|
||||
|
||||
Reference in New Issue
Block a user