From a862be723effcf14003e63c12a8d6a11d4492dbc Mon Sep 17 00:00:00 2001 From: Jose Luis Pedrosa Date: Fri, 19 Jun 2020 14:34:12 +0100 Subject: [PATCH] Add other options to locate terraform provider binary --- provider/CONTRIBUTE.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/provider/CONTRIBUTE.md b/provider/CONTRIBUTE.md index 7c9b95fe..57eb1975 100644 --- a/provider/CONTRIBUTE.md +++ b/provider/CONTRIBUTE.md @@ -70,6 +70,9 @@ If your `terraform` binary is in the `$GOPATH/bin` folder on your machine, then If not, the init operation will download the AzureRM Provider for you. You can just remove it, and replace it with your local copy. Do a `terraform init` again and you're done ! :-) +`terraform init` will look for the providers in the folder where the `.tf` files are located, so it is possible to just copy the provider from `$GOPATH/bin` to your current folder and it will be used instead of getting downloaded. + + ## Debug the AzureRM provider using Visual Studio Code and Delve It is possible to use Visual Studio Code and Delve (the Golang debugger) to debug the AzureRM provider.