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: windows path with C:// like prefixes #92

Merged
merged 1 commit into from
Feb 20, 2024
Merged

fix: windows path with C:// like prefixes #92

merged 1 commit into from
Feb 20, 2024

Conversation

Boshen
Copy link
Member

@Boshen Boshen commented Feb 20, 2024

No description provided.

Copy link

codspeed-hq bot commented Feb 20, 2024

CodSpeed Performance Report

Merging #92 will not alter performance

Comparing test-windows (7a7679e) with main (ca4fe98)

Summary

✅ 2 untouched benchmarks

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ca4fe98) 93.50% compared to head (7a7679e) 93.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
+ Coverage   93.50%   93.52%   +0.01%     
==========================================
  Files          11       11              
  Lines        2172     2177       +5     
==========================================
+ Hits         2031     2036       +5     
  Misses        141      141              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Boshen Boshen changed the title fix: use normalize_with instead of join because the file can be an absolute path by accident fix: windows path with C:// like prefixes Feb 20, 2024
@Boshen Boshen merged commit d50143e into main Feb 20, 2024
21 checks passed
@Boshen Boshen deleted the test-windows branch February 20, 2024 11:53
Comment on lines +263 to +266
debug_assert!(Path::new(specifier)
.components()
.next()
.is_some_and(|c| matches!(c, Component::Normal(_))));
Copy link
Collaborator

@ematipico ematipico Feb 20, 2024

Choose a reason for hiding this comment

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

It would be nice to add a message in the assertion that explains the assertion itself. At the moment there isn't much context

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.

None yet

2 participants