Skip to content

Commit

Permalink
patch: build.go access custom labels directly cause panic
Browse files Browse the repository at this point in the history
Signed-off-by: Risky Feryansyah Pribadi <[email protected]>
  • Loading branch information
RiskyFeryansyahP committed Sep 6, 2022
1 parent 8a9eae3 commit 07eb8a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/compose/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ func (s *composeService) ensureImagesExists(ctx context.Context, project *types.
if project.Services[i].Labels == nil {
project.Services[i].Labels = types.Labels{}
}
project.Services[i].CustomLabels[api.ImageDigestLabel] = digest
project.Services[i].CustomLabels[api.ImageNameLabel] = service.Image
project.Services[i].CustomLabels.Add(api.ImageDigestLabel, digest)
project.Services[i].CustomLabels.Add(api.ImageNameLabel, service.Image)
}
}
return nil
Expand Down

0 comments on commit 07eb8a5

Please sign in to comment.