Hi,
I'm using wskdeploy to deploy a nodejs project. Some of my dependencies under node_modules contains empty files, that are currently ignored by wskdeploy:
|
if !f.Mode().IsRegular() || f.Size() == 0 { |
|
return nil |
|
} |
Unfortunately, the missing files currently break my application.
Is the empty check really needed?
How can I ensure that empty files will be uploaded?
My workaround:
find . -type f -empty -name '*.js' -exec bash -c "echo '//' > \"{}\"" \;
Hi,
I'm using
wskdeployto deploy a nodejs project. Some of my dependencies undernode_modulescontains empty files, that are currently ignored bywskdeploy:openwhisk-wskdeploy/utils/zip.go
Lines 79 to 81 in d653592
Unfortunately, the missing files currently break my application.
Is the empty check really needed?
How can I ensure that empty files will be uploaded?
My workaround: