fix: Correct provider name to match the public registry (#462)

This fixes the following error that shows up if you run the provider in
debug mode:

```json
{"@level":"info","@message":"2022/09/21 15:25:08 [ERROR] Error parsing provider name \"registry.terraform.io/kreuzwerker/terraform-provider-docker\": Invalid provider type: Provider source \"kreuzwerker/terraform-provider-docker\" has a type with the prefix \"terraform-provider-\", which isn't valid. Although that prefix is often used in the names of version control repositories for Terraform providers, provider source strings should not include it.\n\nDid you mean \"kreuzwerker/docker\"?","@timestamp":"2022-09-21T15:25:08.353718-04:00"}
```
This commit is contained in:
Benjamin Staffin 2022-09-30 11:25:11 -04:00 committed by GitHub
parent 418d333f96
commit bdaec499d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ func main() {
opts := &plugin.ServeOpts{ProviderFunc: provider.New(version)}
if debugMode {
debugOpts := &plugin.ServeOpts{ProviderFunc: provider.New(version), ProviderAddr: "registry.terraform.io/kreuzwerker/terraform-provider-docker", Debug: true}
debugOpts := &plugin.ServeOpts{ProviderFunc: provider.New(version), ProviderAddr: "registry.terraform.io/kreuzwerker/docker", Debug: true}
plugin.Serve(debugOpts)
return
}