~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/knotless

git that lives in your Atmosphere account

knotless.dev
1 collaborator

knotless 0.13.0 Latest 2 packages, 1 image

1
10

A run's layers that fail to go at first are removed again

Merged chadtmiller.com asked to merge into main from chadtmiller.com/knotless:run/lease-remove-again
crates/knotless-run/src/caches.rs+4−1
@@ -695,7 +695,10 @@ impl Lease {
impl Drop for Lease {
fn drop(&mut self) {
let _ = remove(&self.dir);
// Written to as it goes, it is not empty once its files are: a
// first try that fails so is tried again, rather than left until
// the runner next starts.
let _ = (0..3).any(|_| remove(&self.dir).is_ok());
let mut bases = self.caches.bases.lock().unwrap();
for layer in &self.layers {
let key = (layer.read.clone(), layer.generation);