terraform-ls
terraform-ls copied to clipboard
Support custom plugin cache directory & `dev_overrides`
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.
Are there any plans to adopt this?