Ban --no-cache with --link-mode=symlink (#5519)

## Summary

Closes https://github.com/astral-sh/uv/issues/5360.
This commit is contained in:
Charlie Marsh 2024-07-28 15:01:17 -04:00 committed by GitHub
parent 4b4128446d
commit b0c841ee3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 76 additions and 7 deletions

View file

@ -258,6 +258,11 @@ impl LinkMode {
Self::Symlink => symlink_wheel_files(site_packages, wheel, locks),
}
}
/// Returns `true` if the link mode is [`LinkMode::Symlink`].
pub fn is_symlink(&self) -> bool {
matches!(self, Self::Symlink)
}
}
/// Extract a wheel by cloning all of its files into site packages. The files will be cloned