Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 72713ce

Browse files
authored
assign empty slice if local digests is nil
1 parent 7bf7eeb commit 72713ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/compose/pull.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ func (s *composeService) pullDryRun(ctx context.Context, project *types.Project,
209209
var results []pullDryRunServiceResult
210210

211211
for _, service := range project.Services {
212-
l := localDigests[service.Image]
212+
l, ok := localDigests[service.Image]
213+
if !ok {
214+
l = []string{}
215+
}
213216
d := dstrDigests[service.Image]
214217
plan := getPullPlan(service, l, d)
215218
result := &pullDryRunServiceResult{

0 commit comments

Comments
 (0)