mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Respect cached local --find-links
in install plan (#2907)
## Summary I think this is kind of just an oversight. If a wheel is available via `--find-links`, and the index is "local", we never find it in the cache. ## Test Plan `cargo test`
This commit is contained in:
parent
31a67f539f
commit
134810c547
3 changed files with 53 additions and 3 deletions
|
@ -150,10 +150,9 @@ impl<'a, Context: BuildContext + Send + Sync> DistributionDatabase<'a, Context>
|
|||
Url::parse(url).map_err(|err| Error::Url(url.clone(), err))?
|
||||
}
|
||||
FileLocation::Path(path) => {
|
||||
let url = Url::from_file_path(path).expect("path is absolute");
|
||||
let cache_entry = self.build_context.cache().entry(
|
||||
CacheBucket::Wheels,
|
||||
WheelCache::Url(&url).wheel_dir(wheel.name().as_ref()),
|
||||
WheelCache::Index(&wheel.index).wheel_dir(wheel.name().as_ref()),
|
||||
wheel.filename.stem(),
|
||||
);
|
||||
return self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue