hashicorp / terraform-plugin-docs

Generate and validate Terraform plugin/provider documentation.
Mozilla Public License 2.0
225 stars 68 forks source link

`Validate` command not working #376

Closed sheneska closed 6 months ago

sheneska commented 6 months ago

Terraform CLI and terraform-plugin-docs Versions

github.com/hashicorp/terraform-plugin-docs v0.19.2

Provider Code

N/A

Expected Behavior

Should output exit code 0, automatically setting the provider name if in the correct folder (terraform-provider-X)

Actual Behavior

Screenshot 2024-05-23 at 10 09 47 AM

Steps to Reproduce

  1. tfplugindocs generate --flags

How much impact is this issue causing?

Low

Logs

No response

Additional Information

No response

Code of Conduct

austinvalle commented 6 months ago

Hey Sheneska 👋🏻 , thanks for reporting the bug. I was able to recreate it locally and we're just missing a piece of defaulting logic (similar to the generate command).

As a workaround until we release the fix, you can run with the --provider-name argument set:

tfplugindocs validate --provider-name=time
austinvalle commented 6 months ago

We'll release this fix with v0.19.3 next week!

austinvalle commented 6 months ago

v0.19.3 has been released with the fix for this 🚀