MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / endpoint_for_digest

Function endpoint_for_digest

atomic-cli/src/commands/agent/owner.rs:1400–1408  ·  view source on GitHub ↗
(digest: &str)

Source from the content-addressed store, hash-verified

1398
1399#[cfg(unix)]
1400fn 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)]
1411fn endpoint_for_digest(digest: &str) -> String {

Callers 1

endpoint_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected