diff --git a/internal/terraform/context.go b/internal/terraform/context.go index 5d3f84e46d..c5f0b837b6 100644 --- a/internal/terraform/context.go +++ b/internal/terraform/context.go @@ -146,13 +146,6 @@ func NewContext(opts *ContextOpts) (*Context, tfdiags.Diagnostics) { } func (c *Context) Schemas(config *configs.Config, state *states.State) (*Schemas, tfdiags.Diagnostics) { - // FIXME: This method gets called multiple times on the same context with - // the same inputs by different parts of Terraform that all need the - // schemas, and it's typically quite expensive because it has to spin up - // plugins to gather their schemas, so it'd be good to have some caching - // here to remember plugin schemas we already loaded since the plugin - // selections can't change during the life of a *Context object. - var diags tfdiags.Diagnostics ret, err := loadSchemas(config, state, c.plugins)