From b42b61e307b481edef9d439ddca7db502695d9e9 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Fri, 27 Nov 2020 12:05:57 +0100 Subject: [PATCH] rename method for clarity Signed-off-by: Nicolas De Loof --- local/build.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/build.go b/local/build.go index 06f15a532..50300069d 100644 --- a/local/build.go +++ b/local/build.go @@ -52,7 +52,7 @@ func (s *composeService) ensureImagesExists(ctx context.Context, project *types. } } if service.Build != nil { - opts[service.Name] = s.buildImage(service, project.WorkingDir) + opts[service.Name] = s.toBuildOptions(service, project.WorkingDir) continue } @@ -102,7 +102,7 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opts return err } -func (s *composeService) buildImage(service types.ServiceConfig, contextPath string) build.Options { +func (s *composeService) toBuildOptions(service types.ServiceConfig, contextPath string) build.Options { var tags []string if service.Image != "" { tags = append(tags, service.Image)