Skip to content

Explicitly configure uv to use hard links#2044

Merged
edmorley merged 1 commit intomainfrom
uv-hardlinks
Mar 3, 2026
Merged

Explicitly configure uv to use hard links#2044
edmorley merged 1 commit intomainfrom
uv-hardlinks

Conversation

@edmorley
Copy link
Member

@edmorley edmorley commented Mar 3, 2026

Since in newer versions of uv (specifically uv 0.10.5+, which we haven't yet updated to) the default link mode has changed from hardlink to clone (aka reflink), and reflinks are slower in some environments (such as Heroku's build system).

See:

Even if the uv default ends up being changed back to hard links again, it seems worth us explicitly requesting that link mode, given that we know it's the best mode for our use-case.

GUS-W-21429394.

Since in newer versions of uv the default link mode has
changed from `hardlink` to `clone` (aka reflink), and
reflinks are slower in some environments (such as Heroku's
build system).

See:
astral-sh/uv#18259

Even if the uv default ends up being changed back to
hard links again, it seems worth us explicitly requesting
that link mode, given that we know it's the best mode
for our use-case.

GUS-W-21429394.
@edmorley edmorley self-assigned this Mar 3, 2026
@edmorley edmorley marked this pull request as ready for review March 3, 2026 15:02
@edmorley edmorley requested a review from a team as a code owner March 3, 2026 15:02
@edmorley edmorley merged commit a64b2d9 into main Mar 3, 2026
6 checks passed
@edmorley edmorley deleted the uv-hardlinks branch March 3, 2026 16:21
@heroku-linguist heroku-linguist bot mentioned this pull request Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants