mirror of https://github.com/astral-sh/uv
docs: suggest copy linking for GitLab integration guide (#11067)
## Summary Hardlinking does not work in that context and raises a warning. Setting the link mode to copy makes the warning go away. ## Test Plan Tested on gitlab.com and our self-hosted GitLab instance. Before changing the link mode: https://gitlab.com/fgreinacher/uv-test/-/jobs/8986967570 After changing the link mode: https://gitlab.com/fgreinacher/uv-test/-/jobs/8987026307. ⚒️ with ❤️ by [Siemens](https://opensource.siemens.com/) --------- Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
parent
d866c58ea2
commit
9fc24b2ac5
|
|
@ -16,12 +16,11 @@ variables:
|
||||||
UV_VERSION: 0.5
|
UV_VERSION: 0.5
|
||||||
PYTHON_VERSION: 3.12
|
PYTHON_VERSION: 3.12
|
||||||
BASE_LAYER: bookworm-slim
|
BASE_LAYER: bookworm-slim
|
||||||
|
# GitLab CI creates a separate mountpoint for the build directory,
|
||||||
stages:
|
# so we need to copy instead of using hard links.
|
||||||
- analysis
|
UV_LINK_MODE: copy
|
||||||
|
|
||||||
uv:
|
uv:
|
||||||
stage: analysis
|
|
||||||
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
|
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
|
||||||
script:
|
script:
|
||||||
# your `uv` commands
|
# your `uv` commands
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue