watch should ony build selected services

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2025-01-29 08:34:50 +01:00 committed by Guillaume Lours
parent 840288895e
commit 1c073c0a04

View File

@ -65,7 +65,7 @@ func watchCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service)
}
func runWatch(ctx context.Context, dockerCli command.Cli, backend api.Service, watchOpts watchOptions, buildOpts buildOptions, services []string) error {
project, _, err := watchOpts.ToProject(ctx, dockerCli, nil)
project, _, err := watchOpts.ToProject(ctx, dockerCli, services)
if err != nil {
return err
}