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

Ensure RemoveProjectRoots works for assemblies that are run on a OS that differs from their build OS. #154

Merged
merged 5 commits into from
Feb 28, 2022

Conversation

sgtfrankieboy
Copy link
Contributor

Goal

Fixes #152.

Design

This design ensures that the ProjectRoots provided still get the seperatorChar appended to the end of the path no matter if its a Windows or Unix-based path.

Changeset

The RemoveProjectRoots method now checks if a ProjectRoot provided is a Unix-based path or Windows and acts accordingly.

Testing

I added in two tests for testing Unix-based paths to the MiddlewareTests file.

yousif-bugsnag and others added 4 commits January 10, 2022 11:21
Co-authored-by: Gareth Thackeray <gareth.thackeray@smartbear.com>
Copy link
Contributor

@yousif-bugsnag yousif-bugsnag left a comment

Choose a reason for hiding this comment

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

Hi @sgtfrankieboy, thanks for the PR!

I think this needs a bit of tweaking for the case of Unix-style paths that already contain a trailing slash, e.g. /app/, as I think currently the prefix for these would end up as /app/\.

It looks like the new test scenarios are still checking Windows-style paths which is why this isn't being picked up.

@yousif-bugsnag yousif-bugsnag added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Feb 17, 2022
@sgtfrankieboy
Copy link
Contributor Author

Oh that was a pretty big brainfart on my part. Fixed the code and tests.

@xljones xljones added backlog We hope to fix this feature/bug in the future bug Confirmed bug and removed awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. labels Feb 21, 2022
yousif-bugsnag
yousif-bugsnag previously approved these changes Feb 28, 2022
@yousif-bugsnag yousif-bugsnag changed the base branch from master to next February 28, 2022 09:51
@yousif-bugsnag yousif-bugsnag dismissed their stale review February 28, 2022 09:51

The base branch was changed.

@yousif-bugsnag yousif-bugsnag merged commit 8ede8a9 into bugsnag:next Feb 28, 2022
@yousif-bugsnag
Copy link
Contributor

Thanks for the contribution @sgtfrankieboy!

@yousif-bugsnag yousif-bugsnag removed the backlog We hope to fix this feature/bug in the future label Feb 28, 2022
@yousif-bugsnag yousif-bugsnag added the released This feature/bug fix has been released label Mar 24, 2022
@yousif-bugsnag
Copy link
Contributor

This has now been released in v3.0.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug released This feature/bug fix has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProjectRoots not being removed when build on Linux and hosted on Windows
3 participants