mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[PR #829] [MERGED] fix: fixes path issues on windows #807
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#807
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-shiori/shiori/pull/829
Author: @Monirzadeh
Created: 1/28/2024
Status: ✅ Merged
Merged: 2/5/2024
Merged by: @fmartingr
Base:
master← Head:fix-test-in-windows📝 Commits (10+)
b67aef4return corrent path in windows with usiing path libac8433cci: run tests in windows and macos too2a94c26avoid testing mysql/psql in windows and macos95e0319windows & macos matrix1737a89disable gotestfmt0f65bfcreplace which in shell scriptf12ff1ehandle error in test db removal1e3a5acfix expected path baseed on platformaa10509add leading seprator89d9599Merge branch 'fix-file-not-serve-in-windows' into fix-test-in-windows📊 Changes
12 files changed (+241 additions, -449 deletions)
View changed files
📝
.github/workflows/_test.yml(+37 -3)📝
Makefile(+1 -1)📝
internal/config/config_test.go(+2 -12)📝
internal/core/ebook_test.go(+39 -34)📝
internal/core/processing_test.go(+36 -43)📝
internal/database/database_test.go(+103 -2)📝
internal/database/mysql_test.go(+4 -118)📝
internal/database/pg_test.go(+4 -117)📝
internal/database/sqlite_test.go(+6 -112)📝
internal/http/routes/frontend.go(+2 -2)📝
internal/testutil/shiori.go(+5 -2)📝
scripts/test.sh(+2 -3)📄 Description
This PR try to fix failed test in windows and fix #822
TODO:
frontpage_test.gofor windows.failed to create destination dir file does not exist.WriteFilethis test failed in windows. core test failed because of that.for example change this two line
github.com/go-shiori/shiori@84e5b09c4c/internal/core/ebook_test.go (L25-L26)to this and test will pass
The process cannot access the file because it is being used by another process.TestReadDotEnveverywhere we useos.RemoveAllFixes #829
Fixes #824
Fixes #823
Close #827
Close #822
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.