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

fix: correctly process relative paths as --skip values #7737

Merged
merged 3 commits into from
Apr 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clippy
  • Loading branch information
klkvr committed Apr 20, 2024
commit efa51bf002f7b933516fbe89c64a683a59f5b131
4 changes: 2 additions & 2 deletions crates/common/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,9 @@ impl FileFilter for SkipBuildFilters {
fn is_match(&self, file: &Path) -> bool {
self.matchers.iter().all(|matcher| {
if !is_match_exclude(matcher, file) {
return false;
false
} else if let Ok(stripped) = file.strip_prefix(&self.project_root) {
return is_match_exclude(matcher, stripped);
is_match_exclude(matcher, stripped)
} else {
true
}
Expand Down
Loading