(digest: &str)
| 1398 | |
| 1399 | #[cfg(unix)] |
| 1400 | fn endpoint_for_digest(digest: &str) -> String { |
| 1401 | // macOS limits Unix-domain socket paths to roughly 104 bytes. Environment |
| 1402 | // temp directories can be much longer, so use the stable short Unix temp |
| 1403 | // root and keep repository identity in the canonical-path digest. |
| 1404 | Path::new("/tmp") |
| 1405 | .join(format!("atomic-owner-{digest}.sock")) |
| 1406 | .to_string_lossy() |
| 1407 | .into_owned() |
| 1408 | } |
| 1409 | |
| 1410 | #[cfg(windows)] |
| 1411 | fn endpoint_for_digest(digest: &str) -> String { |