Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install uv using COPY and bump to latest version #4376

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Conversation

quis
Copy link
Member

@quis quis commented Feb 5, 2025

Put venv location in environment variable

As suggested in astral-sh/uv#11214 (comment)

Without this we’re making an assumption about the venv existing (that we know because we just created it) that uv doesn’t know.

Install uv from Docker registry

This is one of the recommended ways to install uv in their documentation: https://docs.astral.sh/uv/guides/integration/docker/#installing-uv

It means we don’t need to specify the version number 3 times.

Bump uv to latest version

We can safely do this because:

quis added 3 commits February 5, 2025 10:55
As suggested in:
astral-sh/uv#11214 (comment)

Without this we’re making an assumption about the venv existing (that we
know because we just created it) that uv doesn’t know.
This is one of the recommended ways to install uv in their
documentation:
https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
We can safely do this because:
- the regression in 0.5.27 was fixed in https://github.com/astral-sh/uv/pull/11218/files
- we added the location of the venv to an environment variable in this
  commit’s grandparent
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