mirror of
https://github.com/docker/compose.git
synced 2026-08-27 11:53:47 +00:00
Removed build warning when no explicit build has been requested.
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
7d5913403a
commit
ec88588cd8
1 changed files with 4 additions and 2 deletions
|
|
@ -40,7 +40,10 @@ func (s *composeService) Build(ctx context.Context, project *types.Project, opti
|
|||
return Run(ctx, func(ctx context.Context) error {
|
||||
return tracing.SpanWrapFunc("project/build", tracing.ProjectOptions(ctx, project),
|
||||
func(ctx context.Context) error {
|
||||
_, err := s.build(ctx, project, options, nil)
|
||||
builtImages, err := s.build(ctx, project, options, nil)
|
||||
if err == nil && len(builtImages) == 0 {
|
||||
logrus.Warn("No services to build")
|
||||
}
|
||||
return err
|
||||
})(ctx)
|
||||
}, "build", s.events)
|
||||
|
|
@ -91,7 +94,6 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
|
|||
}
|
||||
|
||||
if len(serviceToBuild) == 0 {
|
||||
logrus.Warn("No services to build")
|
||||
return imageIDs, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue