@@ -77,7 +77,7 @@ func downDirectionTraversal(visitorFn func(context.Context, string) error) *grap
7777
7878// InDependencyOrder applies the function to the services of the project taking in account the dependency order
7979func InDependencyOrder (ctx context.Context , project * types.Project , fn func (context.Context , string ) error , options ... func (* graphTraversal )) error {
80- graph , err := NewGraph (project , ServiceStopped , false )
80+ graph , err := NewGraph (project , ServiceStopped )
8181 if err != nil {
8282 return err
8383 }
@@ -89,8 +89,8 @@ func InDependencyOrder(ctx context.Context, project *types.Project, fn func(cont
8989}
9090
9191// InReverseDependencyOrder applies the function to the services of the project in reverse order of dependencies
92- func InReverseDependencyOrder (ctx context.Context , project * types.Project , ignoreMissing bool , fn func (context.Context , string ) error , options ... func (* graphTraversal )) error {
93- graph , err := NewGraph (project , ServiceStarted , ignoreMissing )
92+ func InReverseDependencyOrder (ctx context.Context , project * types.Project , fn func (context.Context , string ) error , options ... func (* graphTraversal )) error {
93+ graph , err := NewGraph (project , ServiceStarted )
9494 if err != nil {
9595 return err
9696 }
@@ -257,7 +257,7 @@ func (v *Vertex) GetChildren() []*Vertex {
257257}
258258
259259// NewGraph returns the dependency graph of the services
260- func NewGraph (project * types.Project , initialStatus ServiceStatus , ignoreMissing bool ) (* Graph , error ) {
260+ func NewGraph (project * types.Project , initialStatus ServiceStatus ) (* Graph , error ) {
261261 graph := & Graph {
262262 lock : sync.RWMutex {},
263263 Vertices : map [string ]* Vertex {},
@@ -271,7 +271,7 @@ func NewGraph(project *types.Project, initialStatus ServiceStatus, ignoreMissing
271271 for _ , name := range s .GetDependencies () {
272272 err := graph .AddEdge (s .Name , name )
273273 if err != nil {
274- if ignoreMissing || ! s .DependsOn [name ].Required {
274+ if ! s .DependsOn [name ].Required {
275275 delete (s .DependsOn , name )
276276 project .Services [index ] = s
277277 continue
0 commit comments