-
Notifications
You must be signed in to change notification settings - Fork 294
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
Overwrite permissions of zip files for FAT jars #598
Overwrite permissions of zip files for FAT jars #598
Conversation
…issions (e.g. FAT jars) Signed-off-by: David Freilich <dfreilich@vmware.com>
Signed-off-by: David Freilich <dfreilich@vmware.com>
Codecov Report
@@ Coverage Diff @@
## master #598 +/- ##
==========================================
+ Coverage 70.14% 70.44% +0.30%
==========================================
Files 64 64
Lines 3684 3695 +11
==========================================
+ Hits 2584 2603 +19
+ Misses 770 762 -8
Partials 330 330
Continue to review full report at Codecov.
|
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.
Couple comments.
The function name is unconventional. I would say, prefer is
functions generally for booleans.
Function call location is fine...that loop is so gnarly I'm not sure how to untangle it.
Signed-off-by: David Freilich <dfreilich@vmware.com>
* Remove Focus on test Signed-off-by: David Freilich <dfreilich@vmware.com>
Signed-off-by: David Freilich <dfreilich@vmware.com>
* Allows for possibility of file not being stored as FAT, and therefore not overwriting permissions Signed-off-by: David Freilich <dfreilich@vmware.com>
Signed-off-by: David Freilich <dfreilich@vmware.com>
Some older methods of DOS compression don't contain proper permissions (e.g.
FAT
formatted jars, vsunix
), and deny buildpacks access to their files. This PR identifies FAT files based on the first byte of theirheader.CreaterVersion
, as done in thezip
source (https://golang.org/src/archive/zip/struct.go).Closes #464
Signed-off-by: David Freilich dfreilich@vmware.com