Skip to content

UV hardlink files #1622

Description

@Naramsim

Hi @FallenDeity @phalt

on my machine when installing the dependencies with make install-base I got a warning:

Warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
         If the cache and target directories are on different filesystems, hardlinking may not be supported.
         If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
Installed 22 packages in 6.27s

Is it something ok? It happens on your systems as well? Should we add the --link-mode=copy as a default?

Activity

  1. changed the title [-]UV hradlink files[/-] [+]UV hardlink files[/+] on Jul 25, 2026
  2. FallenDeity commented on Jul 25, 2026

    @FallenDeity
    Contributor

    can you mention the directories/file system you are operating out of, the project dir (where .venv is created) and the UV_CACHE_DIR (this is usually some global path) looks like both of them might be on different file systems or drives which is causing this

  3. phalt commented on Jul 27, 2026

    @phalt
    Member

    I've never had to do that myself!

  4. Naramsim commented on Jul 28, 2026

    @Naramsim
    MemberAuthor

    I'm working as aless in a fedora 44 machine:

     ❯ pwd
    /home/aless/Documents/Github/pokeapi
    ❯ echo $UV_CACHE_DIR

    The var isnt' set. I also found out that:

     ❯ make format
    error: Failed to spawn: `ruff`
      Caused by: Permission denied (os error 13)
    make: *** [Makefile:99: format] Error 2
    ❯ chmod +x .venv/bin/ruff
    ❯ make format
    error: Failed to spawn: `ruff`
      Caused by: Permission denied (os error 13)
    make: *** [Makefile:99: format] Error 2

    If ran with sudo , bash cannot find ruff.

    Note: Using CPython 3.14.6 interpreter at: /usr/bin/python3.14 I cleaned the .venv folder and ran a uv cache clean but it didn't help.

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