pub fn checkout_tmp(&self, hash: &BuildHash) -> Res<OutputLayout> {
        let path = self.layout.tmp.join(&hash.0);
        let lock = DirLock::acquire(&path)?;
        if lock.path().exists() {
            clear_dir(&lock.path()).context(format_err!("couldn't remove existing output path"))?;
        }
        OutputLayout::new(lock)
    }
/// Returns a lock on a temporary build directory.
/// Note that the format of this directory should be an OutputLayout.
Returns a lock on a temporary build directory.
Note that the format of this directory should be an OutputLayout.
Returns a lock on a temporary build directory . Note that the format of this directory should be an OutputLayout .
pub fn checkout_tmp(&self, hash: &BuildHash) -> Res<OutputLayout> {
        let path = self.layout.tmp.join(&hash.0);
        let lock = DirLock::acquire(&path)?;
        if lock.path().exists() {
            clear_dir(&lock.path()).context(format_err!("couldn't remove existing output path"))?;
        }
        OutputLayout::new(lock)
    }
pub fn checkout_tmp ( & self , hash : & BuildHash ) -> Res < OutputLayout > { let path = self . layout . tmp . join ( & hash . 0 ) ; let lock = DirLock :: acquire ( & path ) ? ; if lock . path ( ) . exists ( ) { clear_dir ( & lock . path ( ) ) . context ( format_err ! ( " " ) ) ? ; } OutputLayout :: new ( lock ) }
Returns a lock on a temporary build directory.
Returns a lock on a temporary build directory .
&self
hash
&BuildHash