Skip to content
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

support provider names containing dash - #366

Open
2 tasks
azrdev opened this issue Mar 8, 2024 · 0 comments
Open
2 tasks

support provider names containing dash - #366

azrdev opened this issue Mar 8, 2024 · 0 comments

Comments

@azrdev
Copy link

azrdev commented Mar 8, 2024

Describe the bug

Terraform plugins may contain a dash - in the name, but as I read this regex
https://github.com/dikhan/terraform-provider-openapi/blob/master/main.go#L97

it seems to be the reason for a provider with a name containing dashes (in the filename) yielding me the following error (running it standalone as MWE, same thing from within ~/.terraform/plugins, called by terraform init)

To Reproduce

Steps to reproduce the behavior:

  1. download binary, or clone repo and go build
  2. mkdir /tmp/test
  3. mv terraform-provider-openapi /tmp/test/terraform-provider-a-b
  4. $ /tmp/test/terraform-provider-a-b
    (...)
    [ERROR] error getting the provider's name from the binary '/tmp/test/terraform-provider-a-b': provider binary name (/tmp/test/terraform-provider-a-b) does not match terraform naming convention 'terraform-provider-{name}', please rename the provider binary

Expected behaviour

Start processing of the openapi spec.

Additional context

Checklist (for admin only)

Don't forget to go through the checklist to make sure the issue is created properly:

  • I have added a corresponding label (bug) to the issue (right side menu)
  • I have added this issue to the 'API Terraform Provider' GitHub project (right side menu)
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

No branches or pull requests

1 participant