-
Notifications
You must be signed in to change notification settings - Fork 63
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
Updated ArchiveDir to Persist File Headers #9
Conversation
Looks like this should also solve #10. |
Do we know when this is going to be merged? @radeksimko |
If this is merged and released, then I can finally stop having to run a bash script before I run |
Hello! v1.0.1 was released earlier today. Happy Terraforming! |
I'm not sure if I'm doing something wrong, but I tried to zip my file with both 1.0.0 and 1.0.1, but the resulting zip files have the same checksum. Is it working for you @dthagard? I think this change might just not have been enough to get zip files that work for Go lambda functions. |
Ok, I think I figured out why it isn't working for me. I am only archiving a single file with |
I got it working. Will submit a PR and you guys can decide how to proceed. |
I'm using this provider to generate aws elastic beanstalk source bundles. Zip file generated by v1.0.1 are failing to deploy. |
@gabelazo What kind of beanstalk application is it? .NET? |
@stefanwork Single docker container. The exact platform version is 64bit Amazon Linux 2017.09 v2.8.2 running Docker 17.06.2-ce. here's the error we got:
We rolled back to 1.0.0 and deployment worked. |
I suspect that it's because However, I am not very experienced with beanstalk so I'm not sure how to repro this specific case. |
@gabelazo v1.0.2 has been released with #3 that adds back compression. Is the new version working better for you? I think there's a filesize limit for beanstalk zip files, so maybe when the compression went away, your filesize increased so much that you went over that limit?
|
@stefansundin v1.0.2 is working. Our bundles are not more than 512MB. They are just a few config files, we're using docker platform so we're not bundling code, just specifying image uri in a json file. Thanks! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR addresses the issue reported here (#8) where the file attributes are stripped when creating an archive from a source directory.
In this PR we replace the use of
writer.Create
withwrite.CreateHeader
using the file header that is already present in the method.