Closed mamantoha closed 2 months ago
to fix the check_ameba
workflow go to Setting -> Actions -> General and check "Read and write permissions"
Thanks a lot @mamantoha 👍 Could you please tell me why do we need the permissions for ameba
@sdogruyol I don't know why https://github.com/crystal-ameba/github-action requires write permissions
@mamantoha that's already enabled, do I need to do anything else?
@sdogruyol I don't understand why check_ameba
fails. It works fine on my fork.
Just reran the workflow and it failed with the same error. Not sure what's wrong with permissions 🤷
The Kemal::StaticFileHandler
specs are failing because of this part:
Both @public_dir
and expanded_path
contain the drive name, so file_path
becomes something like C:\...\C:\...
. Replacing the first line with just expanded_path = request_path
makes all specs pass. I have not dug far enough to understand if the File.expand_path
call has any significance on other platforms.
StaticFileHandler
probably just needs to be aligned with stdlib's implementation.
That part in stdlib is:
request_path = Path.posix(request_path)
expanded_path = request_path.expand("/")
file_path = @public_dir.join(expanded_path.to_kind(Path::Kind.native))
Hi @HertzDevil @straight-shoota I don't have a Windows environment to test this build locally. Can someone else take over and continue working on this pull request? Thank you.
Closed in favor of https://github.com/kemalcr/kemal/pull/690
This was just a test for Windows CI