terraform-plugin-docs icon indicating copy to clipboard operation
terraform-plugin-docs copied to clipboard

Error executing command: unable to generate website: configuration is invalid

Open cloud-j-luna opened this issue 2 years ago • 1 comments

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 image 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.

cloud-j-luna avatar Jul 11 '22 23:07 cloud-j-luna

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.

lrstanley avatar Aug 12 '22 04:08 lrstanley