Skip to content

Explicitly configure uv to use hard links#519

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

Explicitly configure uv to use hard links#519
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 (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:
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 16:51
@edmorley edmorley requested a review from a team as a code owner March 3, 2026 16:51
@edmorley edmorley enabled auto-merge (squash) March 3, 2026 16:59
@edmorley edmorley merged commit 8cd891b into main Mar 3, 2026
6 checks passed
@edmorley edmorley deleted the uv-hardlinks branch March 3, 2026 17:04
heroku-linguist bot added a commit that referenced this pull request Mar 3, 2026
## heroku/python

### Changed

- Updated pip from 25.3 to 26.0.1. ([#508](#508))
- Updated uv from 0.10.1 to 0.10.7. ([#518](#518))
- Explicitly configured uv to use hard links to maintain the behaviour of previous versions. ([#519](#519))
@heroku-linguist heroku-linguist bot mentioned this pull request Mar 3, 2026
heroku-linguist bot added a commit to heroku/cnb-builder-images that referenced this pull request Mar 3, 2026
## heroku/python

### Changed

- Updated pip from 25.3 to 26.0.1. ([#508](heroku/buildpacks-python#508))
- Updated uv from 0.10.1 to 0.10.7. ([#518](heroku/buildpacks-python#518))
- Explicitly configured uv to use hard links to maintain the behaviour of previous versions. ([#519](heroku/buildpacks-python#519))
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