-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Terraform v0.10.0 3rd party plugin location incorrectly stated #15705
Comments
For Windows, 3rd party plugin location is: |
Hi @codycushing, Sorry this issue slipped through. It was intended that the legacy The suggested directory of There is also the |
(sorry, that go-getter issue was mistakingly linked here for a moment, hopefully it will "un-reference" itself eventually) |
Have tried a bunch of options to no avail. @codycushing - can you provide your setup again? Thanks! |
The only way I am able to get third party providers to work:
terraform init -plugin-dir="~/projects/terraform/projectx/.terraform/plugins/darwin_amd64" this properly registers my softlayer provider override. I would rather it honor the .terraformrc file and use the proper binary and move it and register it. |
Hi all, It sounds like there are some weird behaviors here and Terraform is not behaving exactly as designed, but I want to explain the intended behavior here to help us figure out which parts are not working as expected. First, the In the absense of a
The For third-party providers to be used in conjunction with official releases from the HashiCorp repository, placing the file in one of the above directories and naming it with a version suffix like For most cases I recommend placing custom providers in the same directory as the Making use of these directories is recommended over the With all of this said, it does seem like there are some bugs here. The two discrepancies I'm seeing in the comments here are:
Does that match what you all are seeing here? Are there other discrepancies not accounted for in this list? The verbose log output produced by running Terraform with the
If any of you are able to share these lines from your debug output (redacting any sensitive information the paths might disclose) that'd be helpful to try to figure out what's going on here. Note that Terraform does not produce any output if one of the directories in the list doesn't exist at all, which is why not all of the directories I listed are shown in the above example output. We also left a particularly-verbose log line in 0.10.0 that indicates all of the files the discovery process is evaluating, and whether Terraform considers them to be plugins based on the filenames:
(We're going to remove the "skipping ... " message in 0.10.1 since it's overly verbose for most purposes, but it happens to be quite handy here for understanding what files Terraform is finding during the discovery process.) |
That's what I'm experiencing.
Sure! Just FYI I've aliased my
Running
I ran
Then I try re-running
It looks to me like it's looking for the providers in Hope this is useful. |
Just to fill in one piece of the puzzle, I bet I know the change leading to the legacy path I am fairly certain that |
FYI - going to retest my 3rd party provider again - but the following piece of info was not available to me - wondering if you can do better output to users when providers are not found in the error message.
|
Hi @tehmaspc! Sorry this isn't better documented. At the moment the best reference to this is in the 0.10 upgrade guide, but indeed we should find a more permanent place for it to live in the docs that describe how to build third-party providers. |
guys - there are bugs here i have now finally got a
|
Sorry, this is not strictly required, and Terraform will pick up an unversioned plugin from the directories listed. It is recommended though to start versioning plugins, so naming the file accordingly may be a good idea.
This is fixed by PR 15769 referenced above. |
@tehmaspc: Let me know if that's something you can reproduce, because it shouldn't currently be the case.
The log message is Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
v0.10.0
Terraform Configuration Files
NA
Debug Output
NA
Panic Output
NA
Expected Behavior
The previous model for specifying provider location should work (.terraformrc).
The correct path for my system would be outputted.
Sufficient migration documentation would be available to figure this out without searching through code
Actual Behavior
Incorrect path was outputted for where to locate plugin
Steps to Reproduce
terraform init
Actual path that works is ~/.terraform.d/plugins/
Important Factoids
.terraformrc config approach was nice for development because it could point to an arbitrary location like the provider projects /bin folder for development work.
References
NA
The text was updated successfully, but these errors were encountered: