Skip to content

LinkType HardLink hardcoded in installer — ignores filesystem capabilities and LinkOptions #2168

@ritankarsaha

Description

@ritankarsaha

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

In crates/rattler/src/install/installer/mod.rs, the PrefixRecord.link.link_type field recorded to
conda-meta is always Some(LinkType::HardLink), regardless of:

  • Whether the target filesystem actually supports hard links (e.g. NFS, cross-device installations)
  • The caller-supplied LinkOptions (which exposes allow_hard_links, allow_symbolic_links,
    allow_ref_links)

A TODO comment acknowledged this: "compute the right value here based on the options and
can_hard_link".

Consequence: on network filesystems or cross-device setups, packages are installed via file copies
(correctly), but the conda-meta record falsely says HardLink. Tooling that reads conda-meta to
reason about installation state gets incorrect data.

Additional Context

No response

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