File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 6464(defaults to ` ${GOPATH}/bin ` or ` ${HOME}/go/bin ` if ` ${GOPATH} ` is not set).
6565Repeat this every time you make changes to the provider locally.
6666
67- Then, setup your environment following [ these
68- instructions] ( https://www.terraform.io/plugin/debugging#terraform-cli-development-overrides )
69- to make your local terraform use your local build.
67+ Then write this config to a file:
68+ ``` hcl filename="../reproduce/.terraformrc"
69+ provider_installation {
70+ dev_overrides {
71+ "argoproj-labs/argocd" = "/Users/username/go/bin" # path must be absolute and point to the directoy containing the binary
72+ }
73+
74+ direct {}
75+ }
76+ ```
77+
78+ And lastly use the following environment variable in a terminal session to tell Terraform to use this file for picking up the development binary:
79+ ``` console
80+ export TF_CLI_CONFIG_FILE=../.reproduce/.terraformrc
81+ ```
82+
83+ For further reference consult [ HashiCorp's article] ( https://www.terraform.io/plugin/debugging#terraform-cli-development-overrides ) about this topic.
7084
7185## Debugging
7286
You can’t perform that action at this time.
0 commit comments