-
Notifications
You must be signed in to change notification settings - Fork 367
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
Elastic beanstalk provider creates truncated zip files #1180
Comments
It seems to be caused by generating zip files with > 65535 files. I've tested with this script in the Travis debug session require 'pathspec'
require 'zip'
def files
files = Dir.glob('**/*', File::FNM_DOTMATCH)
files = filter(files, '.ebignore')
files
end
def filter(files, spec)
spec = PathSpec.from_filename(spec)
files.reject { |file| spec.match(file) }
end
# files.each do |f|
# puts f
# end
def cwd
@cwd ||= "#{Dir.pwd}/"
end
def create_zip
::Zip::File.open('test.zip', ::Zip::File::CREATE) do |zip|
files.slice(0, 65539).each do |path|
zip.add(path.sub(cwd, ''), path)
end
end
end
create_zip And this command:
65534 works, 65539 fails. |
It seems like you need to enable zip64: It's enabled for all application versions uploaded by the official AWS EB CLI: |
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
Example build: https://travis-ci.com/kounta/kounta/jobs/295835426
We're using dpl v2 (edge):
I ran the following command in a debug Travis CI session:
The output was as expected (~130k "Adding x" lines).
Then testing the zip file:
Any ideas?
The text was updated successfully, but these errors were encountered: