{"record":{"id":"d68335ea5f58b564","repo":"oven-sh/bun","slug":"package-not-found","errorCode":null,"errorMessage":"Package not found","messagePattern":"Package not found","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/install/PackageManager/PackageManagerEnqueue.rs","lineNumber":1788,"sourceCode":"                )\n                .expect(\"unreachable\"),\n                url: StringOrTinyString::init_append_if_needed(\n                    this.lockfile.str(&repository.repo),\n                    &mut crate::network_task::filename_store_appender(),\n                )\n                .expect(\"unreachable\"),\n                env: crate::repository::SharedEnv::get(this.env_mut()),\n                res: *res,\n            }),\n        },\n        id: task_id,\n        apply_patch_task: if let Some((h, patch_hash)) = patch {\n            let dep = dependency;\n            let pkg_id = match this\n                .lockfile\n                .package_index\n                .get(&dep.name_hash)\n                .unwrap_or_else(|| panic!(\"Package not found\"))\n            {\n                PackageIndexEntry::Id(p) => *p,\n                PackageIndexEntry::Ids(ps) => ps[0], // TODO is this correct\n            };\n            let mut pt = PatchTask::new_apply_patch_hash(this, pkg_id, patch_hash, h);\n            pt.callback.apply_mut().task_id = Some(task_id);\n            Some(pt)\n        } else {\n            None\n        },\n        ..Task::uninit()\n    };\n    let task = this.preallocated_resolve_tasks.get_init(value).as_ptr();\n    // SAFETY: `get_init` just fully initialized the slot.\n    unsafe { &raw mut (*task).threadpool_task }\n}\n\npub fn enqueue_git_checkout(","sourceCodeStart":1770,"sourceCodeEnd":1806,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/install/PackageManager/PackageManagerEnqueue.rs#L1770-L1806","documentation":"Error \"Package not found\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at src/install/PackageManager/PackageManagerEnqueue.rs:1788 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}