This change fixes a couple bugs with assets: * We weren't recursing into subdirectories in the new "path as archive" feature, which meant we missed most of the files. * We need to make paths relative to the root of the archive directory itself, otherwise paths end up redundantly including the asset's root folder path. * We need to clean the file paths before adding them to the archive asset map, otherwise they are inconsistent between the path, tar, tgz, and zip cases. * Ignore directories when traversing zips, since they aren't included in the other formats. * Tolerate io.EOF errors when reading the ZIP contents into blobs. * Add test cases for the four different archive kinds. This fixes pulumi/pulumi-aws#50.
5 lines
447 B
Text
5 lines
447 B
Text
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
|
|
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis
|
|
aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
|
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|