From 72713ce83bbe2810dbc5acb8fb68fbdd3e3d9a30 Mon Sep 17 00:00:00 2001 From: satotake Date: Sun, 20 Jun 2021 09:18:56 +0000 Subject: [PATCH] assign empty slice if local digests is nil --- pkg/compose/pull.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/compose/pull.go b/pkg/compose/pull.go index f9968466bd..3eaf7adf75 100644 --- a/pkg/compose/pull.go +++ b/pkg/compose/pull.go @@ -209,7 +209,10 @@ func (s *composeService) pullDryRun(ctx context.Context, project *types.Project, var results []pullDryRunServiceResult for _, service := range project.Services { - l := localDigests[service.Image] + l, ok := localDigests[service.Image] + if !ok { + l = []string{} + } d := dstrDigests[service.Image] plan := getPullPlan(service, l, d) result := &pullDryRunServiceResult{