Skip to content

Empty files are missing #1154

@Wohllebe-dotSource

Description

@Wohllebe-dotSource

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 '//' > \"{}\"" \;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions