mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Use relative paths for --find-links
and local registries (#6566)
## Summary See: https://github.com/astral-sh/uv/issues/6458
This commit is contained in:
parent
3902bb498d
commit
7fa265a11b
18 changed files with 834 additions and 264 deletions
|
@ -270,6 +270,9 @@ pub fn canonicalize_executable(path: impl AsRef<Path>) -> std::io::Result<PathBu
|
|||
/// `lib/python/site-packages/foo/__init__.py` and `lib/python/site-packages` -> `foo/__init__.py`
|
||||
/// `lib/marker.txt` and `lib/python/site-packages` -> `../../marker.txt`
|
||||
/// `bin/foo_launcher` and `lib/python/site-packages` -> `../../../bin/foo_launcher`
|
||||
///
|
||||
/// Returns `Err` if there is no relative path between `path` and `base` (for example, if the paths
|
||||
/// are on different drives on Windows).
|
||||
pub fn relative_to(
|
||||
path: impl AsRef<Path>,
|
||||
base: impl AsRef<Path>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue