Skip to main content

acquire_landing_lock

Function acquire_landing_lock 

Source
pub fn acquire_landing_lock(
    context: &GitContext,
    cwd: &Path,
    layout: &InvocationLayout,
    environment: &[(OsString, OsString)],
) -> Result<OwnerLock, RecoveryError>
Expand description

What: Take the landing lock and recover dead landings under it, or take the ancestor’s view of it. Why: The lock is released again when recovery fails before the caller receives it.

In TS you’d write (pseudocode):

const lock = await acquireLandingLock({ gitPath, cwd, registryRoot });