Carry collection selections through configuration

This commit is contained in:
2026-11-29 17:53:36 +00:00
parent a0c5ca8761
commit 10221b0624
10 changed files with 172 additions and 6 deletions

View File

@@ -75,6 +75,9 @@ func cloneReferenceSources(references map[string]ReferenceSource) map[string]Ref
}
func cloneReferenceSource(source ReferenceSource) ReferenceSource {
if source.Collections != nil {
source.Collections = append([]string{}, source.Collections...)
}
if source.Artifact != nil {
artifact := *source.Artifact
source.Artifact = &artifact