Skip to content

Is partial mode build safe? and effective? #1790

@hi-ogawa

Description

@hi-ogawa

See https://github.com/wakujs/waku/pull/1789/files#r2532430895. I think this is very unsafe and probably we shouldn't remove it.

Okay, technically the explicit config is not there #1784, so it's entirely users risk. So my suggestion would be to remove such test case and remove this hack

// In partial mode, skip if the file already exists.
if (
fs.existsSync(destFile) &&
// HACK: This feels a bit hacky
destFile !== buildMetadataFile
) {
return;
}

Let me find a simple example to create broken partial mode build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions