Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom plugin cache directory & dev_overrides #24

Open
radeksimko opened this issue Mar 13, 2020 · 1 comment
Open

Support custom plugin cache directory & dev_overrides #24

radeksimko opened this issue Mar 13, 2020 · 1 comment
Labels
enhancement New feature or request terraform/exec

Comments

@radeksimko
Copy link
Member

radeksimko commented Mar 13, 2020

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.

@kirrmann
Copy link

kirrmann commented Feb 1, 2024

Are there any plans to adopt this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request terraform/exec
Projects
None yet
Development

No branches or pull requests

2 participants