Skip to content

Retain relative paths in the lock file for file:///${PROJECT_ROOT}/...#18678

Closed
zanieb wants to merge 3 commits intoastral-sh:mainfrom
zaniebot:claude/fix-uv-regression-xGn4e
Closed

Retain relative paths in the lock file for file:///${PROJECT_ROOT}/...#18678
zanieb wants to merge 3 commits intoastral-sh:mainfrom
zaniebot:claude/fix-uv-regression-xGn4e

Conversation

@zanieb
Copy link
Copy Markdown
Member

@zanieb zanieb commented Mar 23, 2026

Fixes the regression at #18176 (comment)

claude added 2 commits March 23, 2026 14:13
File URL dependencies containing environment variable references (e.g.,
`file:///${PROJECT_ROOT}/a`) should produce relative paths in lockfiles,
since the user is parameterizing the path for portability. Previously,
`was_given_absolute()` treated all file URLs as absolute, causing these
paths to be stored as absolute in the lockfile after PR astral-sh#18176.

https://claude.ai/code/session_018jGTUmqEdwKfaWo1zQ9jWW
@zanieb zanieb added the bug Something isn't working label Mar 23, 2026
@zanieb zanieb marked this pull request as ready for review March 23, 2026 17:51
@zanieb
Copy link
Copy Markdown
Member Author

zanieb commented Mar 23, 2026

Replaced by #18680

@zanieb zanieb closed this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants