Skip to content

I am so confused #1612

Answered by mre
dpc asked this question in General
Jan 14, 2025 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

In the current implementation, globs don't respect .gitignore.
We use the glob crate, which doesn't provide this functionality.

The code is here:
https://github.com/thomas-zahner/lychee/blob/76dbd843f4b3360821153df1685914ba08682e07/lychee-lib/src/types/input.rs#L298-L303

We considered switching to globset, but it also wouldn't respect .gitinore files. (It would allow multiple glob patterns, though!)
I am not aware of any other crate which respects the .gitinore file, but we could implement it ourselves.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dpc
Comment options

@mre
Comment options

mre Jan 14, 2025
Maintainer

@dpc
Comment options

@mre
Comment options

mre Jan 15, 2025
Maintainer

Answer selected by mre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants