Skip to content

Make generate fails with some .md of resources due to structure #108

@valkiriaaquatica

Description

@valkiriaaquatica

Hi, as it was said in this issue #32 sometimes the generator fails because there is structure in the .md of the resource in the terraform repository that do not fits the correct wat.

I have tested with the solution said changing the function calling as said in the issue but still failing, an example of .md that fails is https://github.com/Telmate/terraform-provider-proxmox/blob/master/docs/resources/cloud_init_disk.md where the error:

go generate linux_amd64
scraper: error: Failed to scrape Terraform provider metadata: cannot scrape Terraform registry: failed to scrape resource metadata from path: ../.work/Telmate/proxmox/docs/resources/cloud_init_disk.md: failed to find the prelude of the document using the xpath expressions: //text()[contains(., "description") and contains(., "page_title")]
exit status 1

I was wondering , is there an existant solution for this? Or the best option it's to PR the terraform repository wit the fix .md?

Thanks in advance for you continous improvements

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions