-
Notifications
You must be signed in to change notification settings - Fork 68
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
Doc generator uses wrong registry #141
Comments
I have this same issue. Also, what if the plugin is in development and not registered. What address should be used? |
I believe this is a non-issue. The registry path used is merely just a temporary configuration for querying the schema, and I don't believe it needs to match the actual provider location. It uses that as a placeholder for the temporary directory so that way the terraform cli picks it up (see here), and builds your provider, writing the binary to that temporary location as if it were actually on the registry. For example, I am utilizing the latest tfplugindocs today, building an internal provider that uses a different hostname, and isn't pushed to the registry, and I'm able to build without issue. This makes me think the problem you're running into is something else, like a slight naming misconfiguration somewhere. I'd make sure the provider name you're passing in is just the shorthand version of the provider (e.g. |
I was able to resolve the error by changing the name of the publisher. Previously I was using: The "-" was causing numerous issues that gave no errors but just caused mysterious failures (like doc generator not working). Using "exampleorg/myProvider" works. |
@independentid where did you change that? im still facing the issue:
|
The way we fixed this was by setting GOOS and GOARCH to what the error was complaining about
|
Not sure what exactly required, but ...
The same error for |
Hi @gerbil 👋 Your error message including |
After switching to go version it's now working as expected. Thank you!
|
@bflad 's suggestion fixes the mentioned issue for me! Thank you a lot, very helpful |
Whenever I attempt to run
tfplugindocs generate
it assumes that my provider is under the hashicorp registry. Is there a way to pass in your own registry and provider instead of it defaulting to hashicorp?The error I get is:
`
Error executing command: unable to generate website: exit status 1
Error: Failed to load plugin schemas
Error while loading schemas for plugin components: Failed to obtain provider
schema: Could not load the schema for provider
registry.terraform.io/hashicorp/{my_provider}: failed to instantiate provider
"registry.terraform.io/hashicorp/{my_provider}" to obtain schema: Unrecognized
remote plugin message: open : no such file or directory
`
How can I get the registry to actually use "registry.terraform.io/{my_org}/{my_provider}"
The text was updated successfully, but these errors were encountered: