mirror of
https://github.com/docker/compose.git
synced 2026-11-17 13:45:39 +00:00
A run whose replacement of a directory that is not an entry failed put that directory back unconditionally. Another run having set aside the entry that took its place in the meantime, the directory put back stood in the way of the final rename of that run, whose deferred removal then deleted the complete entry it had set aside: the cache ended with the incomplete directory after a run returned success. Only a complete entry is worth restoring, so the restore is guarded. A run that loses to another may still return an error: the concurrency test now pins the path of the entry for the runs that succeed, and the state of the cache once all of them are over. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> |
||
|---|---|---|
| .. | ||
| cache.go | ||
| cache_darwin.go | ||
| cache_unix.go | ||
| cache_windows.go | ||
| git.go | ||
| git_test.go | ||
| oci.go | ||
| oci_cache_entry_test.go | ||
| oci_test.go | ||