Skip to content

Conversation

pdecat
Copy link
Contributor

@pdecat pdecat commented Sep 18, 2019

This PR should resolve #12 by:

@pdecat pdecat mentioned this pull request Sep 18, 2019
@pdecat pdecat changed the title Search parent dirs for .terraform and plugin cache dir Search plugins in parent dirs with .terraform and in plugin cache dir Sep 18, 2019
@pdecat
Copy link
Contributor Author

pdecat commented Sep 18, 2019

Sample debug output with this change:

2019/09/18 13:38:11 [DEBUG] search .terraform dir in /home/patrick/workspaces/myproject/mysubmodule
2019/09/18 13:38:11 [DEBUG] search .terraform dir in /home/patrick/workspaces/myproject
2019/09/18 13:38:11 [DEBUG] plugin dirs: []string{".", "/home/patrick/.vscode/extensions/mauve.terraform-1.4.0/lspbin", "terraform.d/plugins/linux_amd64", "/home/patrick/workspaces/myproject/.terraform/plugins/linux_amd64", "/home/patrick/.terraform.d/plugins", "/home/patrick/.terraform.d/plugins/linux_amd64", "/home/patrick/.terraform.d/plugin-cache/linux_amd64", "/home/patrick/go/bin"}
2019/09/18 13:38:11 [DEBUG] checking for provider in "."
2019/09/18 13:38:11 [DEBUG] checking for provider in "/home/patrick/.vscode/extensions/mauve.terraform-1.4.0/lspbin"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-alicloud_v1.55.4_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-archive_v1.2.2_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-aws_v2.28.1_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-azurerm_v1.33.1_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.15.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-helm_v0.10.2_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-kubernetes_v1.9.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-random_v2.2.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4"
2019/09/18 13:38:11 [DEBUG] checking for provider in "/home/patrick/workspaces/myproject/.terraform/plugins/linux_amd64"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-pagerduty_v1.4.0_x4"
2019/09/18 13:38:11 [DEBUG] checking for provider in "/home/patrick/.terraform.d/plugins"
2019/09/18 13:38:11 [DEBUG] checking for provider in "/home/patrick/.terraform.d/plugins/linux_amd64"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-datadog_v2.4.1-dev"
2019/09/18 13:38:11 [DEBUG] checking for provider in "/home/patrick/.terraform.d/plugin-cache/linux_amd64"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-alicloud_v1.55.4_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-archive_v1.2.2_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-aws_v2.14.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-aws_v2.28.1_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-azurerm_v1.30.1_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-azurerm_v1.33.1_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-datadog_v2.4.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.10.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.11.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.12.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.13.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.14.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.6.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.7.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.8.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.9.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google-beta_v2.9.1_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.10.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.11.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.12.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.13.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.14.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.15.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.6.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.7.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.8.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.9.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-google_v2.9.1_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-helm_v0.10.2_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-http_v1.1.1_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-kubernetes_v1.7.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-kubernetes_v1.9.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-local_v1.2.2_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-null_v1.0.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-pagerduty_v1.2.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-pagerduty_v1.4.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-random_v2.1.2_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-random_v2.2.0_x4"
2019/09/18 13:38:11 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4"
2019/09/18 13:38:11 [DEBUG] checking for provider in "/home/patrick/go/bin"

@juliosueiras
Copy link
Owner

Thanks =)

@juliosueiras juliosueiras merged commit 82a704e into juliosueiras:master Sep 19, 2019
@pdecat pdecat deleted the search_parent_dirs_and_cache branch September 19, 2019 05:40
@pdecat
Copy link
Contributor Author

pdecat commented Sep 19, 2019

Thanks @juliosueiras for your work, best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin discovery Issue
2 participants