Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Fix windows paths #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

james-emerton
Copy link

I was having a problem uploading sourcemaps from a Windows system using the --directory flag. Paths were being uploaded with backslashes which caused bugsnag not to pick up the sourcemaps correctly.

This replaces any backslashes in minifiedUrl and sources with the corresponding posix style path. As an added benefit the tests suite is closer to passing on Windows.

Unfortunately, there is some weirdness with the sorting of the arrays that causes them to sort randomly. I've fiddled with the sort() calls but the best I could do was make the tests pass every other run.

Correct the expected paths to use posix separators on Windows systems.
Convert uploaded urls and source paths to posix style paths
@mattdyoung
Copy link

Hi @james-emerton

Thanks for the PR. We'll need to do some work on this to review the PR and work out what's happening with the tests, which we won't be able to schedule for a while with the other team priorities.

We'll raise this on our backlog to take a look at when time permits. For now you could fork the repository to start using your fix.

Thanks!

@mattdyoung mattdyoung added the bug Confirmed bug label Sep 10, 2019
@abigailbramble abigailbramble added the backlog We hope to fix this feature/bug in the future label Dec 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backlog We hope to fix this feature/bug in the future bug Confirmed bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants