Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Apache License 2.0
5.85k
stars
552
forks
source link
Sccache server spawned by one user used by another sccache user #1435
I have two users that were trying to compile the same Rust crate simultaneously, where both users have configured sccache as the rustc wrapper. User A calls cargo build first, which spawns a sccache server listening on localhost:4226. User B then calls cargo build, sees the socket 4226, and returns a permission-denied error, probably because it is trying to access the cache in User A's home dir.
Is there something already implemented that helps the situation? Apparently I can just run sccache --stop-server on User B before running cargo build, but is there something else that more elegently handles it?
I have two users that were trying to compile the same Rust crate simultaneously, where both users have configured
sccache
as the rustc wrapper. User A callscargo build
first, which spawns a sccache server listening on localhost:4226. User B then callscargo build
, sees the socket 4226, and returns a permission-denied error, probably because it is trying to access the cache in User A's home dir.Is there something already implemented that helps the situation? Apparently I can just run
sccache --stop-server
on User B before runningcargo build
, but is there something else that more elegently handles it?