pub fn default_cache_socket(cache: &Path) -> PathBufExpand description
Default cache-service endpoint for the current protocol:
<cache>/daemon-v<N>-workspace-v2-proof-v1.sock.
When that path, or the job endpoint beside it, would exceed
MAX_SOCKET_PATH (a deep HOME or a long SAIL_CACHE_DIR), the
endpoint moves to a private per-cache directory /tmp/sail-<hash>/,
where <hash> names the cache. That directory is created mode 0700 and
used only when it is a real directory that no other user can access and
this user can write; otherwise the long path is returned unchanged, and
starting the daemon reports that it is too long.