@@ -231,7 +231,7 @@ func runRun(ctx context.Context, backend api.Service, project *types.Project, op
231
231
}
232
232
buildForDeps = & bo
233
233
}
234
- return startDependencies (ctx , backend , * project , buildForDeps , options . Service , options . ignoreOrphans )
234
+ return startDependencies (ctx , backend , * project , buildForDeps , options )
235
235
}, dockerCli .Err ())
236
236
if err != nil {
237
237
return err
@@ -298,22 +298,23 @@ func runRun(ctx context.Context, backend api.Service, project *types.Project, op
298
298
return err
299
299
}
300
300
301
- func startDependencies (ctx context.Context , backend api.Service , project types.Project , buildOpts * api.BuildOptions , requestedServiceName string , ignoreOrphans bool ) error {
301
+ func startDependencies (ctx context.Context , backend api.Service , project types.Project , buildOpts * api.BuildOptions , options runOptions ) error {
302
302
dependencies := types.Services {}
303
303
var requestedService types.ServiceConfig
304
304
for name , service := range project .Services {
305
- if name != requestedServiceName {
305
+ if name != options . Service {
306
306
dependencies [name ] = service
307
307
} else {
308
308
requestedService = service
309
309
}
310
310
}
311
311
312
312
project .Services = dependencies
313
- project .DisabledServices [requestedServiceName ] = requestedService
313
+ project .DisabledServices [options . Service ] = requestedService
314
314
err := backend .Create (ctx , & project , api.CreateOptions {
315
315
Build : buildOpts ,
316
- IgnoreOrphans : ignoreOrphans ,
316
+ IgnoreOrphans : options .ignoreOrphans ,
317
+ QuietPull : options .quietPull ,
317
318
})
318
319
if err != nil {
319
320
return err
0 commit comments