Resolve supplied products from local records

This commit is contained in:
2026-12-02 15:13:04 +00:00
parent eb146d3298
commit 93c8695250
10 changed files with 235 additions and 12 deletions

View File

@@ -38,6 +38,11 @@ func (c *ArtifactCatalog) HydrateExtractionArtifactsExcept(
if c == nil || m == nil || len(configured) == 0 {
return
}
for _, entry := range c.ListExtraction() {
if _, ok := configured[entry.ExtractionKey]; ok && !excluded[entry.SourceID] {
c.hydrateSuppliedProduct(paths, m, entry.SourceID, entry.CanonicalRelPath)
}
}
input, err := ResolveExtractionInputIdentity(paths, m)
if err != nil {
return
@@ -47,6 +52,11 @@ func (c *ArtifactCatalog) HydrateExtractionArtifactsExcept(
return
}
for sourceID, output := range proof.Outputs {
if m.SuppliedProducts != nil {
if _, exists := m.SuppliedProducts.Products[sourceID]; exists {
continue
}
}
_ = c.markAvailableFromExtractManifest(
sourceID, output.Path, proof.ProducerRunID,
output.Checksum, output.Size, output.Contract,