Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

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

Description

@segevfiner

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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