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: handle windows drive letter at start of path #1099

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

joseph-sentry
Copy link
Contributor

@joseph-sentry joseph-sentry commented Jul 26, 2023

Fixes: #544

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #1099 (8c1932b) into main (016e9ba) will increase coverage by 0.06%.
The diff coverage is 93.75%.

❗ Current head 8c1932b differs from pull request most recent head 0e48a36. Consider uploading reports for the commit 0e48a36 to get more accurate results

@@            Coverage Diff             @@
##             main    #1099      +/-   ##
==========================================
+ Coverage   92.47%   92.53%   +0.06%     
==========================================
  Files          36       36              
  Lines        1342     1353      +11     
  Branches      272      272              
==========================================
+ Hits         1241     1252      +11     
  Misses         69       69              
  Partials       32       32              
Flag Coverage Δ
aarch64 92.46% <93.75%> (+0.06%) ⬆️
aarch64-without-git 92.46% <93.75%> (+0.06%) ⬆️
alpine 92.46% <93.75%> (+0.06%) ⬆️
alpine-proxy 92.46% <93.75%> (+0.06%) ⬆️
alpine-without-git 92.46% <93.75%> (+0.06%) ⬆️
linux 92.46% <93.75%> (+0.06%) ⬆️
linux-without-git 92.46% <93.75%> (+0.06%) ⬆️
macos 92.46% <93.75%> (+0.06%) ⬆️
macos-without-git 92.46% <93.75%> (+0.06%) ⬆️
windows 91.86% <87.50%> (+0.06%) ⬆️
windows-without-git 91.86% <87.50%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/index.ts 76.75% <90.00%> (+1.05%) ⬆️
src/helpers/files.ts 92.85% <100.00%> (+0.26%) ⬆️

@joseph-sentry joseph-sentry force-pushed the joseph/check-windows branch from 8c1932b to 4a199de Compare July 27, 2023 15:20
@joseph-sentry joseph-sentry marked this pull request as ready for review July 27, 2023 15:20
@joseph-sentry joseph-sentry requested a review from a team as a code owner July 27, 2023 15:20
@joseph-sentry joseph-sentry changed the title chore(logging): add some logging fix: handle windows drive letter at start of path Jul 27, 2023
@thomasrockhu-codecov
Copy link
Contributor

@joseph-sentry could you write a test for this?

@joseph-sentry joseph-sentry force-pushed the joseph/check-windows branch 2 times, most recently from f04f5f2 to 685da7a Compare August 2, 2023 15:09
Copy link
Contributor

@thomasrockhu-codecov thomasrockhu-codecov left a comment

Choose a reason for hiding this comment

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

small nit

@@ -320,7 +320,8 @@ export function getFilePath(projectRoot: string, filePath: string): string {
filePath.startsWith('./') ||
filePath.startsWith('/') ||
filePath.startsWith('.\\') ||
filePath.startsWith('.\\')
filePath.startsWith('.\\') ||
/^[A-Z]:\\\S*/.test(filePath)
Copy link
Contributor

Choose a reason for hiding this comment

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

for sanity, just add a comment here why we are doing this

Verified

This commit was signed with the committer’s verified signature.
drazisil-codecov Joe Becher
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
@joseph-sentry joseph-sentry merged commit cba973c into main Aug 10, 2023
@joseph-sentry joseph-sentry deleted the joseph/check-windows branch August 10, 2023 13:47
thomasrockhu-codecov pushed a commit that referenced this pull request Oct 10, 2023
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
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.

Glob path support for Windows drive letters
2 participants