-
Notifications
You must be signed in to change notification settings - Fork 572
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: internal filesystem using path based on the underlying OS #823
fix: internal filesystem using path based on the underlying OS #823
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #823 +/- ##
=======================================
Coverage 25.49% 25.49%
=======================================
Files 47 47
Lines 5632 5632
=======================================
Hits 1436 1436
Misses 3999 3999
Partials 197 197 ☔ View full report in Codecov by Sentry. |
i test that on windows and linux and work fine to me. |
I think we could run the unit tests in all platforms in the CI. Can you run the unittests in windows? i believe there's already a unit test that checks that the assets.css file is returned properly, so that should fail without this change. |
My assumption was correct, test is failing on windos. #824 Now there are several issues:
|
Welcome to windows world 😄
Update: |
I have no idea. You can try to get my CI changes in #824 and run the tests directly in Github, though it will be slow.
Awesome! What was the issue? |
@fmartingr i do more investigation. i try to read more about afero and some bug exist in afero in windows (i am not complete sure yet) shiori/internal/core/processing.go Lines 146 to 156 in 84e5b09
but shiori/internal/domains/storage.go Lines 75 to 79 in 84e5b09
there are some bug reports similar issue (not exactly for this function) here spf13/afero#225 I will continue to dive into other tests 😄 |
Hey @Monirzadeh thanks for the investigation. Honestly it may be easier to just switch afero to something different. We could lose some upgrades in the future but right now we are local-only so I'd rather not make you lose time with these kind of things. What do you think? |
Not at the moment, but we are just using local files, we should be able to create a basic implementation ourselves. |
Hi.
this PR try to fix #822