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

Commit 0b0f74f

Browse files
authored
assign empty slice if local digests is nil
Signed-off-by: GitHub <[email protected]>
1 parent 5d9d523 commit 0b0f74f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/compose/pull.go

+4-1
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)