-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat: support path handle on multi platform #81
Conversation
I don't think this is an issue. The internal metadata, uses
Only the GoRoot has Packages also uses
Do you have a binary proving it is an issue? |
To get an easy reproduce, just run the slowtest on a Windows machine. Some path classifier test will fail because they believe they found something like I can add some detailed info about how this happened. When using The problem happened at the last step. It will join the elements with I noticed this and attached a debugger for a running instance of gore. Thus, I noticed the separator was For redress, it use gore internal and also be affected by this. |
@TcM1911 Do you have any comments? |
You are right. I wasn't thinking of that condition. We have test failures due to not knowing of the new go versions. Let's land #78 first. Once it has been merged, rebase so we can ensure the tests are passing. |
It looks like some logic is broken. You can run the tests locally by using the |
All tests passed on my Windows machine, I will retry with a linux instance. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #81 +/- ##
===========================================
- Coverage 75.73% 75.52% -0.22%
===========================================
Files 14 14
Lines 1904 2680 +776
===========================================
+ Hits 1442 2024 +582
- Misses 252 446 +194
Partials 210 210 ☔ View full report in Codecov by Sentry. |
All tests passed now. I updated some tests manually since they are likely get wrong value casued by It might be better to regenerate the test cases. It's hard to judge a |
Actually, instead of implementing the OS free logic, I think we can use the path package instead.
I need to think how we deal with the |
I prefer that over a self-implemented solution. Sorry for all the back an forth. |
updated |
Can this PR be merged now? I'm developing on a Windows machine and the false positives on unit tests are annoying |
Yes. It looks good now. |
Closes: #62
The previous version of gore included operations related to file paths, but it assumed that the user was running on Linux and processing the binary compiled from Linux. This patch adds support for Windows users, as Windows uses a different path separator.