mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08: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:
committed by
Guillaume Lours
parent
7d5913403a
commit
ec88588cd8
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user