OCaml library and CLI for OCI and Docker image manipulation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Read git HEAD directly instead of shelling out to git rev-parse

Read .git/HEAD and follow the ref to get the commit hash. No
subprocess, no dependency on git being in PATH. Uses Bos.OS.File.read
which is already a dependency.

+1 -5
+1 -5
src/cache.ml
··· 25 25 mkdirs (t.root / "blobs" / "sha256"); 26 26 mkdirs (t.root / "manifests") 27 27 28 - let with_lock lock fn = 29 - Eio.Mutex.lock lock; 30 - let finally () = Eio.Mutex.unlock lock in 31 - Fun.protect ~finally fn 32 - 28 + let with_lock lock fn = Eio.Mutex.use_rw ~protect:true lock fn 33 29 let task path = Eio.Path.native_exn path 34 30 35 31 let remove_task t path =