Skip to content

Commit 65dfff3

Browse files
zkoppertCopilot
andcommitted
fix: suppress uv hardlink warning with UV_LINK_MODE=copy
When running as a GitHub Action, the uv cache and target .venv directory end up on different filesystems (container overlay vs host mount), causing uv to emit a noisy warning on every run. Setting UV_LINK_MODE=copy tells uv to use copy mode directly, suppressing the warning. Signed-off-by: Zack Koppert <zkoppert@github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 52a3496 commit 65dfff3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
2828
CMD python3 -c "import os,sys; sys.exit(0 if os.path.exists('/action/workspace/contributors.py') else 1)"
2929

3030
ENV PYTHONUNBUFFERED=1
31+
ENV UV_LINK_MODE=copy
3132

3233
CMD ["/action/workspace/contributors.py"]
3334
ENTRYPOINT ["uv", "run", "--no-dev", "--project", "/action/workspace"]

0 commit comments

Comments
 (0)