denoland/deno · error
LAUFEY cache dir has no parent: {}
Error message
LAUFEY cache dir has no parent: {} What it means
Error "LAUFEY cache dir has no parent: {}" thrown in denoland/deno.
Source
Thrown at cli/tools/desktop.rs:1974
.await
.with_context(|| format!("failed to download {url}"))?;
let data = response
.into_maybe_bytes()?
.ok_or_else(|| deno_core::anyhow::anyhow!("empty response from {url}"))?;
let actual =
faster_hex::hex_string(&sha2::Sha256::digest(&data)).to_lowercase();
let expected_lc = expected.to_lowercase();
if actual != expected_lc {
// Include the URL in the bail: an attacker who poisoned a redirect
// would otherwise be invisible in the failure log.
bail!(
"checksum mismatch for {archive} (downloaded from {url})\n expected: {expected_lc}\n actual: {actual}"
);
}
let parent = dir.parent().ok_or_else(|| {
deno_core::anyhow::anyhow!(
"LAUFEY cache dir has no parent: {}",
dir.display()
)
})?;
std::fs::create_dir_all(parent)?;
// Stage extraction in a sibling tempdir so concurrent `deno desktop`
// builds don't see (or stomp on) a half-populated `dir` while one
// is mid-extract. tempfile's cleanup-on-drop covers panic /
// early-return paths; on the happy path we consume the TempDir via
// `into_path` so the rename below sees a real directory.
let staging = tempfile::Builder::new()
.prefix(".staging-")
.tempdir_in(parent)
.with_context(|| {
format!("failed to stage tempdir in {}", parent.display())
})?;
View on GitHub (pinned to 89f33cbef2)
When it happens
Trigger: Thrown at cli/tools/desktop.rs:1974 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of denoland/deno@89f33cbef2 (2026-08-16).
Data as JSON: /api/errors/7c3d7ec2cdd16a6d.
Report an issue: GitHub.