Skip to content

Conversation

@vito
Copy link
Owner

@vito vito commented May 3, 2022

I kept running into spurious failures with e.g. "nix" executable not found when builds ran concurrently for the first time.

The setting was shared which is basically "yolo" - everyone gets write access.

An alternative is private which gives each writer their own copy, and I suppose last writer wins?

The most conservative option is locked which ensures only one writer has access at a time, setting the others to wait.

I'm sticking with it until someone complains. :)

vito added 2 commits May 2, 2022 19:56
shared is unsafe and is leading to nix failures
really, all 3 cache modes have their use cases, but i think synchronous
is the safest default at least.

it might make sense to make this configurable on the mount source
somehow, instead of just taking over naked file/dir paths.
@vito vito merged commit aab7977 into main May 3, 2022
@vito vito deleted the lock-cache branch May 3, 2022 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants