You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps this is related to #30, but simpler. I'm looking for a way to make the local cache read-only, so that subsequent builds still get files from the cache, but won't add new items to it. I think GCS has an option for this under SCCACHE_GCS_RW_MODE, but I'm looking to use it for a local cache.
My use case is that I'm building a Docker container with a lot of dependencies pre-compiled. That docker container is than ran and used to compile programs. Ideally, those programs use dependencies that have already been pre-compiled, speeding up compile times. Adding items to the cache when the container is being built is useful, but not when the container is run, as it just ends up using unnecessary disk space.
It'd be wonderful if there was an environment variable (e.g., SCCACHE_LOCAL_RW_MODE) that when set to some value (e.g., READONLY or 0) makes items still be retrieved from the cache during builds, but prevents new items from being added to it.
The text was updated successfully, but these errors were encountered:
Perhaps this is related to #30, but simpler. I'm looking for a way to make the local cache read-only, so that subsequent builds still get files from the cache, but won't add new items to it. I think GCS has an option for this under
SCCACHE_GCS_RW_MODE
, but I'm looking to use it for a local cache.My use case is that I'm building a Docker container with a lot of dependencies pre-compiled. That docker container is than ran and used to compile programs. Ideally, those programs use dependencies that have already been pre-compiled, speeding up compile times. Adding items to the cache when the container is being built is useful, but not when the container is run, as it just ends up using unnecessary disk space.
It'd be wonderful if there was an environment variable (e.g.,
SCCACHE_LOCAL_RW_MODE
) that when set to some value (e.g.,READONLY
or0
) makes items still be retrieved from the cache during builds, but prevents new items from being added to it.The text was updated successfully, but these errors were encountered: