Skip to content

Commit 9fc24b2

Browse files
fgreinacherzanieb
andauthored
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. :hammer_and_pick: with :heart: by [Siemens](https://opensource.siemens.com/) --------- Co-authored-by: Zanie Blue <[email protected]>
1 parent d866c58 commit 9fc24b2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/guides/integration/gitlab.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ variables:
1616
UV_VERSION: 0.5
1717
PYTHON_VERSION: 3.12
1818
BASE_LAYER: bookworm-slim
19-
20-
stages:
21-
- analysis
19+
# GitLab CI creates a separate mountpoint for the build directory,
20+
# so we need to copy instead of using hard links.
21+
UV_LINK_MODE: copy
2222

2323
uv:
24-
stage: analysis
2524
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
2625
script:
2726
# your `uv` commands

0 commit comments

Comments
 (0)