From 49e4029568e4faee5b5e56a2d99705aa27473c69 Mon Sep 17 00:00:00 2001 From: Matt Nikkel Date: Thu, 13 Jan 2022 13:15:03 -0500 Subject: [PATCH] Fix panic on empty target sources map --- pkg/collection/imagetxt/imagetxt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/collection/imagetxt/imagetxt.go b/pkg/collection/imagetxt/imagetxt.go index 8f573a13..0143a7c4 100644 --- a/pkg/collection/imagetxt/imagetxt.go +++ b/pkg/collection/imagetxt/imagetxt.go @@ -122,7 +122,7 @@ func (it *ImageTxt) compute() error { } var pullAll bool - var targetSources map[string]bool + targetSources := make(map[string]bool) if len(foundSources) == 0 || (len(it.IncludeSources) == 0 && len(it.ExcludeSources) == 0) { // pull all found images