You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 298dda4
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
Relative indexes in PEP 723 scripts were resolved against the current
working directory instead of
the script's directory, so a script could work when ran from its own
directory but fail when
ran from elsewhere.
This change resolves inline indexes relative to the script and also
makes `uv add --script` write index
paths relative to the script. It also applies the same behavior to extra
build dependencies
Fixes#21096
## Test Plan
- Added an offline regression test that runs a script with a relative
index from another directory
- Ran the focused project and sync tests
- Ran Clippy and rustfmt
---------
Co-authored-by: Tomasz (Tom) Kramkowski <[email protected]>
0 commit comments