-
Notifications
You must be signed in to change notification settings - Fork 200
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
Unable to download artifacts larger than 2^32-1 bytes #109
Comments
I had trouble here in the past making it work in JavaScript. Would appreciate a PR making things better in terms of handling bigger files. |
In my head, there is one possible solution, which is to download artifact to file, unZIP it, end then delete the ZIP file. The downside is that you need to have double the space. If this is an acceptable solution, I can make it and PR it. |
Would be great if you or someone else could first confirm this workaround really fixes the issue. If it does, then we can introduce a new switch. |
Ok, give me some time. |
I can't find any proper way, how to do it in node, but it can be done by command-line tools (wget on Linux, Invoke-WebRequest/ something else in Windows PowerShell). |
Can't you just add an action input to not unpack, and let the consumer do that themselves if they want to (using |
@daleyjem I've done something like that there: https://github.com/GarnetOS/action-download-artifact |
Thanks @radimkohout. That's not quite what I meant though. I just want to be able to download an unpacked/unzipped artifact. Once I get it, I can just add my own extra I submitted a pull request with what I'm talking about: #150 |
@daleyjem Yes, I know, but it is my solution for my usage, where I need large artifacts. So I know, it is not ideal, but it is usable currently. |
Switch for skipping the unpacking process has been added. |
Really appreciate the work you've done here!
I've recently been trying to download a 3GB artifact and keep running into this error:
I'm fairly certain this is a file size issue as uploading a file exactly 2147483646 bytes in size works fine:
I believe this is the line that throws the error
action-download-artifact/main.js
Line 138 in af92a84
It seems like the Buffer objects can only hold 2^32-1 bytes.
I'd make a fork myself (maybe reading the zip's data as a stream?) but I'm pretty novice with NodeJS. Handling larger files could be a useful option but I understand the project may have other plans.
Thanks!
The text was updated successfully, but these errors were encountered: