diff --git a/buildengine/engine.go b/buildengine/engine.go index d44bcb159c..8064b628d2 100644 --- a/buildengine/engine.go +++ b/buildengine/engine.go @@ -690,11 +690,7 @@ func (e *Engine) build(ctx context.Context, moduleName string, builtModules map[ return fmt.Errorf("module %q not found", moduleName) } - combined := map[string]*schema.Module{} - if err := e.gatherSchemas(builtModules, combined); err != nil { - return err - } - sch := &schema.Schema{Modules: maps.Values(combined)} + sch := &schema.Schema{Modules: maps.Values(builtModules)} if e.listener != nil { e.listener.OnBuildStarted(meta.module)