Skip to content

prebuild-install will mutate the contents of an hard-linked .node file #192

Open
@segevfiner

Description

If there is already a .node file, and it is an hard-link, prebuild-install will mutate the contents of the hard-linked file instead of replacing it with a new file.

This can happen for example from pnpm's side effect cache, when pnpm uses hard links, which happens for example on Linux with an ext4 file system.

This caused node files to get changed in other unrelated working trees on our computers when running prebuild-install to switch the .node files to different versions for other operating systems or architectures.

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