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

Rewrite verify_readmes.sh script in Go #6598

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

eliottness
Copy link

@eliottness eliottness commented Apr 2, 2025

  • Rewrite verify_readmes.sh as the package internal/tools/verifyreadmes
  • Tweak Makefile to call the new script instead of the old one
  • Remove verify_readmes.sh

Closes #6527

Copy link

linux-foundation-easycla bot commented Apr 2, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@eliottness eliottness marked this pull request as ready for review April 2, 2025 16:09
@dmathieu dmathieu added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Apr 4, 2025
@pellared
Copy link
Member

pellared commented Apr 10, 2025

@eliottness, are you able to address my comments?

@eliottness eliottness requested a review from pellared April 11, 2025 09:15
@eliottness eliottness requested a review from pellared April 11, 2025 14:55
@MrAlias MrAlias added this to the v1.36.0 milestone Apr 11, 2025
readme := filepath.Join(filepath.Dir(path), readmeFilename)
_, err = os.Stat(readme)
if os.IsNotExist(err) {
err = fmt.Errorf("couldn't find README.md for %q", filepath.Dir(path))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
err = fmt.Errorf("couldn't find README.md for %q", filepath.Dir(path))
err = fmt.Errorf("couldn't find %s for %q", readmeFilename, filepath.Dir(path))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite verify_readmes.sh script in Go
5 participants