{"record":{"id":"a2f209efbab1ecd8","repo":"jdx/mise","slug":"the-signed-release-list-of-packslip-project-disa","errorCode":null,"errorMessage":"the signed release list of packslip:{project} disappeared; restore the list or explicitly forget this project's packslip pin","messagePattern":"the signed release list of packslip:(.+?) disappeared; restore the list or explicitly forget this project's packslip pin","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/packslip_pins.rs","lineNumber":233,"sourceCode":"        );\n    }\n    if pins.sequences.get(project) != Some(&sequence) {\n        pins.sequences.insert(project.to_string(), sequence);\n        save(path, &pins)?;\n    }\n    Ok(())\n}\n\n/// An absent supplementary list is allowed only before this machine has\n/// accepted one. Its disappearance must not undo signed withdrawals.\npub(crate) fn check_missing_list(project: &str) -> Result<()> {\n    check_missing_list_at(&pins_file(), project)\n}\n\nfn check_missing_list_at(path: &Path, project: &str) -> Result<()> {\n    let _lock = locked(path)?;\n    if load(path)?.sequences.contains_key(project) {\n        bail!(\n            \"the signed release list of packslip:{project} disappeared; restore the list or explicitly forget this project's packslip pin\"\n        );\n    }\n    Ok(())\n}\n\n/// Every pin, by project.\npub(crate) fn list() -> Result<BTreeMap<String, Pin>> {\n    Ok(load(&pins_file())?.pins)\n}\n\n/// Drop a project's pin and sequence, so the next release accepted sets\n/// them again. Returns whether there was one.\npub(crate) fn forget(project: &str) -> Result<bool> {\n    forget_at(&pins_file(), project)\n}\n\npub(crate) fn forget_at(path: &Path, project: &str) -> Result<bool> {","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/packslip_pins.rs#L215-L251","documentation":"This error is raised by packslip pin consistency checking (check_missing_list_at). A pin was previously recorded for this packslip project (an entry exists in the pins file's sequences map keyed by the project), but the underlying signed release list for that project can no longer be loaded. Because silently treating a vanished list as 'no list' would forget the accepted sequence state, mise refuses and asks you to either restore the list or explicitly remove the pin.","triggerScenarios":"Calling check_missing_list (or check_missing_list_at with a pins file path and project name) when the pins file still has a `sequences` entry for the project but the signed release list itself is missing/unreadable — e.g. the list file was deleted, the source moved, or the pin was copied to a machine without the list.","commonSituations":"Deleting or moving the packslip release-list file while a pin for that project still exists in the pins file; hand-editing or pruning the list directory; syncing configs between machines with an incomplete packslip state directory; restoring an old pins file after the list was already removed.","solutions":["Restore the signed release list for the project at the location the pin expects (re-fetch it or restore from backup/git).","If the list is intentionally gone, explicitly remove the pin for this project (e.g. the forget/unpin operation for packslip pins) so the sequences entry is deleted cleanly.","Check that the pins file path is the one you intend (a stale or copied pins file can reference projects whose lists were never present)."],"exampleFix":"// before: pins file still references a project whose list was deleted\n// (sequences contains \"org/tool\" but the signed list file is gone)\n// after: explicitly forget the pin\nmise packslip forget org/tool   # or restore the signed release list first","handlingStrategy":"validation","validationCode":"// before relying on a pinned packslip project, confirm the list still exists\nif (!fs.existsSync(pinsFilePath)) throw new Error(\"pins file missing\");\nconst pins = JSON.parse(fs.readFileSync(pinsFilePath, \"utf8\"));\nif (pins.sequences && pins.sequences[project] && !listFileExists(project)) {\n  throw new Error(`pin for ${project} exists but its signed release list is gone`);\n}","typeGuard":"function hasListForPin(pins, project) {\n  return !(project in (pins?.sequences ?? {})) || listFileExists(project);\n}","tryCatchPattern":"try {\n  checkMissingList(pinsFile, project);\n} catch (e) {\n  if (String(e).includes(\"disappeared\")) {\n    // either restore the list or explicitly forget the pin; never silently continue\n    restoreListOrForgetPin(project);\n  } else throw e;\n}","preventionTips":["Keep the pins file and the packslip list directory in the same backup/sync scope so they never diverge.","Never hand-delete list files; use the explicit forget/unpin command.","Restore pins and lists together when moving to a new machine."],"tags":["packslip","pins","missing-file","state-consistency"],"backgroundTag":"file-not-found","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}