uv/crates/uv-git/src
konsti 62bf92132b
Add a 5 min default timeout for deadlocks (#16342)
When a process is running and another calls `uv cache clean` or `uv
cache prune` we currently deadlock - sometimes until the CI timeout
(https://github.com/astral-sh/setup-uv/issues/588). To avoid this, we
add a default 5 min timeout waiting for a lock. 5 min balances allowing
in-progress builds to finish, especially with larger native
dependencies, while also giving timely errors for deadlocks on (remote)
systems.

Commit 1 is a refactoring.

This branch also fixes a problem with the logging where acquired and
released resources currently mismatch:

```
DEBUG Acquired lock for `https://github.com/tqdm/tqdm`
DEBUG Using existing Git source `https://github.com/tqdm/tqdm`
DEBUG Released lock at `C:\Users\Konsti\AppData\Local\uv\cache\git-v0\locks\16bb813afef8edd2`
```
2025-12-04 14:59:04 +01:00
..
credentials.rs Add `DisplaySafeUrl` newtype to prevent leaking of credentials by default (#13560) 2025-05-27 00:05:30 +02:00
git.rs Support Git LFS with opt-in (#16143) 2025-12-02 12:23:51 +00:00
lib.rs Support Git LFS with opt-in (#16143) 2025-12-02 12:23:51 +00:00
rate_limit.rs Skip GitHub fast path when rate-limited (#13033) 2025-06-24 12:11:41 -07:00
resolver.rs Add a 5 min default timeout for deadlocks (#16342) 2025-12-04 14:59:04 +01:00
source.rs Support Git LFS with opt-in (#16143) 2025-12-02 12:23:51 +00:00