-
Notifications
You must be signed in to change notification settings - Fork 59
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
Unzip failed with interactive message #109
Comments
I just saw some other errors popping up:
(I assume there are chinese characters or something in the filenames)
|
Update: the issue with wechat and meedu is only on macOS, running in linux doesn't yield this problem. Apparently, it's due to APFS: |
Update: the ( |
Go has a really nice zip package, why aren't we using that instead of shelling out to |
Yeah, the version on macOS is incredibly outdated. We can print a warning in the logs if we detect that the version doesn't support the flags we need.
No hard reason. If I had to guess I'd say it was easier to use? |
Yeah, there's another issue with APFS: it's case-insensitive by default, whereas most Linux filesystems are case-sensitive by default. And, guess what, some repos have a |
@eseliger Which of the issues you reported here were fixed by installing a newer version of |
the issues related to react-quill, sourcegraph, sourcegraph-1 are fixed by updating |
Leftover are the issue originially posted with the interactive prompt from |
So the issues left are:
$ find docs
docs
docs/.gitignore
docs/api
docs/api/v1
docs/api/v1/VIP.md
docs/api/v1/README.md
docs/api/.DS_Store vs. |
Ah yep the first makes sense, my bad I didn't see that on first sight. The latter, that is weird behavior from GitHubs side I think 😀 Given that it's not impossible with APFS, as the internal finder tool can correctly unzip it, maybe we should give the go zip library a try and even get around that dependency on |
Yep, I've got it working locally. Will push a commit/PR later today. |
This fixes #109 by using Go's archive/zip package to unzip files. (The code is taken from here and slightly modified: https://golangcode.com/unzip-files-in-go/) It fixes the "interactive" problem, because it silently ignores case-sensitive naming conflicts, which is what you get when using macOS' Finder's unzip utility and unzip on the CLI. "Silently ignores" sounds bad but I think it's what you expect to happen on macOS. It also handles the chinese characters correctly.
* Use Go's archive/zip to unzip repository archives This fixes #109 by using Go's archive/zip package to unzip files. (The code is taken from here and slightly modified: https://golangcode.com/unzip-files-in-go/) It fixes the "interactive" problem, because it silently ignores case-sensitive naming conflicts, which is what you get when using macOS' Finder's unzip utility and unzip on the CLI. "Silently ignores" sounds bad but I think it's what you expect to happen on macOS. It also handles the chinese characters correctly. * Be more defensive when unzipping files * Incorporate more feedback
* Use Go's archive/zip to unzip repository archives This fixes #109 by using Go's archive/zip package to unzip files. (The code is taken from here and slightly modified: https://golangcode.com/unzip-files-in-go/) It fixes the "interactive" problem, because it silently ignores case-sensitive naming conflicts, which is what you get when using macOS' Finder's unzip utility and unzip on the CLI. "Silently ignores" sounds bad but I think it's what you expect to happen on macOS. It also handles the chinese characters correctly. * Be more defensive when unzipping files * Incorporate more feedback
unzip version:
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler.
OS:
macOS Catalina 10.15.3
Error log:
action file:
The text was updated successfully, but these errors were encountered: