Skip to content

Commit 52e6c8e

Browse files
zkoppertCopilot
andauthored
fix: suppress uv hardlink warning with UV_LINK_MODE=copy (#65)
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 fail hardlinking and emit a noisy warning on every run. Setting UV_LINK_MODE=copy tells uv to use copy mode directly, suppressing the warning. Resolves the remaining part of #27. Signed-off-by: Zack Koppert <zkoppert@github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 295fb44 commit 52e6c8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Dockerfile

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

2121
ENV PYTHONUNBUFFERED=1
22+
ENV UV_LINK_MODE=copy
2223
CMD ["/action/workspace/pr_conflict_detector.py"]
2324
ENTRYPOINT ["uv", "run", "--no-dev", "--project", "/action/workspace"]

0 commit comments

Comments
 (0)