terraform-ls icon indicating copy to clipboard operation
terraform-ls copied to clipboard

Support custom plugin cache directory & `dev_overrides`

Open radeksimko opened this issue 4 years ago • 1 comments

This was initially left out from implementation of #16 due to scope/complexity.

https://www.terraform.io/docs/configuration/providers.html#provider-plugin-cache

LS currently won't be able to load schema if the user who chooses to set a custom cache directory, which is because the LS has no ability to parse Terraform's CLI config (yet) and read the plugin_cache_dir option there.

Plugin developers also use dev_overrides in which case no plugins are cached anywhere. This means that LS will opt to use the schema cache. We should probably attempt to source schema locally when plugin_cache_dir or TF_PLUGIN_CACHE_DIR is set.

radeksimko avatar Mar 13 '20 21:03 radeksimko

Are there any plans to adopt this?

kirrmann avatar Feb 01 '24 13:02 kirrmann