mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
terraform: error if subgraph fails to build
This commit is contained in:
parent
a6f792b3aa
commit
5565c27fdd
@ -148,7 +148,9 @@ func Graph(opts *GraphOpts) (*depgraph.Graph, error) {
|
||||
graphAddConfigResources(g, config, mod)
|
||||
|
||||
// Add the modules that are in the configuration.
|
||||
graphAddConfigModules(g, config, opts)
|
||||
if err := graphAddConfigModules(g, config, opts); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Add explicit dependsOn dependencies to the graph
|
||||
graphAddExplicitDeps(g)
|
||||
|
Loading…
Reference in New Issue
Block a user