Skip to content

Always check files explicitly if specified by user or matched by user glob#1816

Merged
mre merged 3 commits intomasterfrom
ignore-file-extensions-for-glob
Aug 25, 2025
Merged

Always check files explicitly if specified by user or matched by user glob#1816
mre merged 3 commits intomasterfrom
ignore-file-extensions-for-glob

Conversation

@mre
Copy link
Copy Markdown
Member

@mre mre commented Aug 23, 2025

Ensure that files specified via glob patterns are always checked, regardless of their extensions. This change addresses the issue where no links were found due to configuration errors. Additional tests have been added to verify glob pattern handling and extension checks.

Fixes lycheeverse/lychee-action#305

mre added 2 commits August 23, 2025 17:24
Add tests for glob pattern handling and extension checks

Closes: lycheeverse/lychee-action#305
@mre mre requested a review from thomas-zahner August 24, 2025 22:31
@mre
Copy link
Copy Markdown
Member Author

mre commented Aug 24, 2025

This should be ready for review now. It's just two lines of actual logic changes followed by a bunch of tests to make sure I didn't break more. Once this is merged, I plan to do a hotfix release, 0.20.1 to resolve the downstream problems with lychee-action.

This now also covers individual files, which will always be checked if provided. The extension does not matter in that case.
@tooomm fyi

@mre mre changed the title Always check files explicitly matched by user glob Always check files explicitly if specified by user or matched by user glob Aug 25, 2025
@mre
Copy link
Copy Markdown
Member Author

mre commented Aug 25, 2025

I will go ahead and merge this since this is a problem for some lychee right now.

@mre mre merged commit c8cf3a0 into master Aug 25, 2025
6 checks passed
@mre mre deleted the ignore-file-extensions-for-glob branch August 25, 2025 08:42
@mre mre mentioned this pull request Aug 25, 2025
@thomas-zahner
Copy link
Copy Markdown
Member

thomas-zahner commented Aug 25, 2025

@mre Thanks for the fix, looks all good to me 👍

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.

Failing since yesterday due to "No links were found. This usually indicates a configuration error."

2 participants