Report effective resource contributors without superseded definitions
This commit is contained in:
@@ -273,9 +273,17 @@ func effectivePipelineOwners(cfg *PipelineConfig) (map[string][]string, error) {
|
||||
sources = ownershipSources(info.Origin, pathsByID)
|
||||
if info.Origin.Layer == configkit.LayerResolution {
|
||||
for _, change := range cfg.resolution.configkitMetadata.History(configkit.Keys(value.segments...)) {
|
||||
if change.Origin.Layer == configkit.LayerMain || change.Origin.Layer == configkit.LayerOverlay {
|
||||
sources = append(sources, ownershipSources(change.Origin, pathsByID)...)
|
||||
if change.Origin.Layer != configkit.LayerResolution {
|
||||
continue
|
||||
}
|
||||
// Native Previous evidence identifies the input immediately before
|
||||
// resolution, including composite and inherited origins.
|
||||
for _, previous := range change.Previous {
|
||||
if previous.Layer == configkit.LayerMain || previous.Layer == configkit.LayerOverlay {
|
||||
sources = append(sources, ownershipSources(previous, pathsByID)...)
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
sources = nonEmptySortedStrings(sources)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user