-
Notifications
You must be signed in to change notification settings - Fork 121
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
Documentation: Plugin module addressing #53
Comments
Hi @independentid 👋 Are you still having trouble with this? The code in the hashicups-pf provider has since been upgraded to The full address is required because it gets mapped to the |
I found out later (can't remember the issue), that this issue arrises when there is a dash/underscore in the organization name. For example: I incorrectly had concluded the issue was related to how packages names and go module names needed to align. It turns out that too was just another issue. When I switched to universityedu as org name the problem went away. |
@independentid thank you for that additional context. Can you recall what exactly didn't work with provider addresses with dashes/underscores in the namespace? e.g. running the provider locally with a |
I found I could use dev overrides to get compile and packaging to work. However tests will not run until dash removed from organization name. Hope that helps.
I have noticed in general that dashes and underscores in terraform cause a lot of unexpected problems in various parts of terraform. I tend to avoid them everywhere now.
Phil
… On Oct 5, 2022, at 9:38 AM, Brian Flad ***@***.***> wrote:
@independentid thank you for that additional context. Can you recall what exactly didn't work with provider addresses with dashes/underscores in the namespace? e.g. running the provider locally with a dev_overrides configuration, running the provider locally in debug mode, a Registry issue, etc. I'm just trying to determine if there is something to do in this codebase, improve/fix the framework/Terraform/Registry, or update documentation somewhere. Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Ah ha! Thank you for the clue there. I will create a terraform-plugin-sdk GitHub issue to investigate that further.
Unfortunately, that does tend to be the case depending on the Terraform component involved since many things have conventionally not included them, but there is also not much feedback from core or the provider frameworks about potential issues when they are used. It'd be great to start patching up non-compliant components or enforce validation against it if necessary. Since I'm not sure there's anything specific to do in this repository, I'm going to close this particular issue for now. If you have specific feedback about a specific component (hashicorp/terraform, hashicorp/terraform-plugin-framework, etc.), we would love to hear about that in a GitHub issue in the relevant repository. Thank you again for the report and sorry for the trouble it caused you in the past. |
Acceptance testing issue created: hashicorp/terraform-plugin-sdk#1075 |
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. |
I had substantial difficulty figuring out how terraform locates plugin and understanding "Address" in ServeOpts works in plugin discovery and initialization.
The relationship between the top-level project (e.g. github project name), the ServeOpts address, and the go modules were unclear in the documentation and tutorial. For example when building the project, if the last plugin name is "abc", then terraform seems to look for: terraform-provider-abc in the go bin directory (apparently requiring the GO project to be called terraform-provider-abc) and the last segment of the Address needs to be "abc".
The server opts address value in main.go, .terraformrc, and project name need to "align" (but not equal).
This was difficult because the current hashicups example tutorial does not use the current plugin framework scaffolding and uses a different plugin start procedure avoiding the ServeOpts Address value.
Hashicups:
Plugin Scaffolding Framework:
The text was updated successfully, but these errors were encountered: