Use hasher to compute resolution hash (#5495)

## Summary

Addressing one TODO. This should be more efficient.
This commit is contained in:
Charlie Marsh
2024-07-26 19:24:09 -04:00
committed by GitHub
parent e8d7c0cb58
commit 561625ed8c
18 changed files with 78 additions and 69 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ impl PythonEnvironment {
} else {
// Otherwise, use a global lockfile.
LockedFile::acquire(
env::temp_dir().join(format!("uv-{}.lock", cache_key::digest(&self.0.root))),
env::temp_dir().join(format!("uv-{}.lock", cache_key::cache_digest(&self.0.root))),
self.0.root.user_display(),
)
}