-
Notifications
You must be signed in to change notification settings - Fork 12
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: add support for .zip
files in binary download
#417
fix: add support for .zip
files in binary download
#417
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 😄
Not blocking, but could you please try to merge my PR #418 on your branch, to see if it resolves the issue with CI, and to check if it works on all Operating Systems? |
…ditorconfig-checker.javascript into fix-add-support-for-zip
Sure, I merged it! |
I think the ci script of commitlint should be different in Windows. (or also for other scripts) E.g. POSIX uses bash while Windows uses Powershell or cmd.
|
Yes, I've updated #418 can you please merge back again? 😄 |
…ditorconfig-checker.javascript into fix-add-support-for-zip
Yep! |
Indeed. On a side note, GitHub rate limiting is annoying. |
I agree. If the GitHub rate limit is lifted, the tests will pass. |
I believe, we should also add |
Added |
Coooooool. We did it.🔥 |
@klaernie |
🎉 This PR is included in version 6.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
It doesn't seems to work on the Already 6 run. And always on macOS, it seems like. Ah... I give up. 😆 We know it's working so that's not critical at least. I created an issue about it: #419 |
it just because github rate limit, maybe just run it again? or create a new github token and add it into request header? |
I tried it 6 times. It's just based on luck, really. I just re ran it a 7th time, and it seemed to work lol => https://github.com/editorconfig-checker/editorconfig-checker.javascript/actions/runs/12693264299/job/35393273587
Yes, that could be a fix, indeed. 👍 |
What changes this PR introduce?
Hello, @theoludwig
This PR resolves the issue metioned in editorconfig-checker/editorconfig-checker#415.
I wrote the code in a way that doesn't affect the existing behavior.
List any relevant issue numbers
editorconfig-checker/editorconfig-checker#415
Is there anything you'd like reviewers to focus on?
I used the
admzip
library to unzip.zip
files. It’s a well-maintained and organized package, which is why I chose it. linkI added logic to detect
.zip
files and unzip them in the same way we handle.tar.gz
.Result
When I set
indent_size = 3
in.editorconfig
and run it, I can confirm it works as expected.Environment
This is my current env.
If there’s anything wrong, please let me know.