terraform-plugin-docs
terraform-plugin-docs copied to clipboard
Error executing command: unable to generate website: configuration is invalid
I get the error Error executing command: unable to generate website: configuration is invalid
when running go generate
on my provider.
I have the following structure in the examples
folder
and the following comment in my
main.go
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs --provider-name=<my provider hostname/namespace/type>
I'm running the command in the root directory of the provider.
Any clues on what can be happening? The logs say some configuration is invalid, I'm not really sure which one. Thank you.
Hello @cloud-j-luna, if https://github.com/hashicorp/terraform-plugin-docs/pull/174 is merged, it may help improve the error output for you to troubleshoot this further. I believe another issue could be related to --provider-name
. For example, if your provider is domain.com/project/my-provider-here
, what should be passed into --provider-name
is my-provider-here
.