Resolve supplied products from local records
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user