radicle-heartwood-lfs/radicle-node
Fintan Halpenny e71f07e592
radicle: temporary repository helper
It's possible that a temporary directory can be created on a different
mount, and when moved during a clone, creates an I/O error.

To prevent this, add a method to `Storage` which creates a temporary
directory and `Repository` with the path in the form
`<rid>.lock`.

This `.lock` path name can easily be skipped when listing
repositories. Further tooling can be added for detecting leftover
`.lock` directories if, for some reason, they were not cleaned up by
the `tempfile` crate.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-11-16 12:01:10 +00:00
..
src radicle: temporary repository helper 2023-11-16 12:01:10 +00:00
Cargo.toml Update `sqlite` dependency to 0.32.0 2023-11-08 15:08:01 +01:00
Dockerfile docker: Make Dockerfile easier to read 2023-08-03 13:43:20 +02:00