Skip to content

Commit d9fa6ce

Browse files
shixishclaude
andcommitted
Exclude uv.lock from the CI working-tree guard
`uv sync --no-sources` rewrites uv.lock in place (swaps the local editable langchain-core/-tests source for the PyPI registry), so the post-test `git diff --exit-code` guard saw an expected diff and failed. Scope the guard to ignore uv.lock; it still catches stray files written by a test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e2ddcf2 commit d9fa6ce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ jobs:
5454
- run: uv sync --no-sources --group test
5555
- run: make test
5656
- name: Check for unexpected file changes
57-
run: git diff --exit-code
57+
# `uv sync --no-sources` rewrites uv.lock in place (local editable
58+
# source -> PyPI registry); that diff is expected in CI. Exclude it so
59+
# the guard still catches stray files a test might have written.
60+
run: git diff --exit-code -- ':!uv.lock'

0 commit comments

Comments
 (0)