Does not show correct results for file path including leading ./
Title says it all.
If you run codeowners ./src/file.go it will always hit a * rule, or just (unowned) if there is no * rule.
Whereas codeowners src/file.go will correctly match a rule that covers this file/directory.
I'm seeing this too.
First rule in my CODEOWNERS is a * rule.
Succeeding rules have more specific rules and override the first rule.
from the docs
Order is important; the last matching pattern takes the most precedence. When someone opens a pull request that only modifies JS files, only @js-owner and not the global owner(s) will be requested for a review.
I will take a stab at this
There is an issue with how * and /... paths are handled.
Fixing the * is easy, but I need to readup on the path handling for gitignores to not break the intended compatibility, since I assume there is a reason for the current solution.