Skip to content
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

Don't scrape empty files #268

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Don't scrape empty files #268

merged 1 commit into from
Sep 1, 2023

Conversation

marcoths
Copy link
Contributor

@marcoths marcoths commented Sep 1, 2023

Description of your changes

Some providers like Fastly have empty files in their docs. This PR modifies the scraper so that it won't fail trying to read empty files

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

The scraper doesn't fail when running

go run cmd/scraper/main.go -n fastly/fastly -r .work/fastly/fastly/docs/resources -o config/provider-metadata.yaml

(assuming the fastly/fastly repo content is already available at ./.work)

@Upbound-CLA
Copy link

Upbound-CLA commented Sep 1, 2023

CLA assistant check
All committers have signed the CLA.

@jeanduplessis
Copy link
Collaborator

jeanduplessis commented Sep 1, 2023

Thanks for the fix @marcoths. Would you mind signing the CLA so we can incorporate your change.

@marcoths
Copy link
Contributor Author

marcoths commented Sep 1, 2023

@jeanduplessis Sure will do ASAP, thanks!

@marcoths
Copy link
Contributor Author

marcoths commented Sep 1, 2023

@jeanduplessis I have also fixed the commit with the correct email address, thanks

@jeanduplessis jeanduplessis merged commit 1155481 into crossplane:main Sep 1, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants