remove fixed FIXME

This commit is contained in:
James Bardin 2023-07-06 10:56:03 -04:00
parent 68d86e81fb
commit b9d8d99b04

View File

@ -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)