{"record":{"id":"b7a9cffbc46e7c5d","repo":"oven-sh/bun","slug":"invalid","errorCode":null,"errorMessage":"Invalid","messagePattern":"Invalid","errorType":"error_code","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/install/error.rs","lineNumber":183,"sourceCode":"    #[error(\"InvalidLockfile\")]\n    InvalidLockfile,\n    #[error(\"Unexpected lockfile version\")]\n    UnexpectedLockfileVersion,\n    #[error(\"Outdated lockfile version\")]\n    OutdatedLockfileVersion,\n    #[error(\"Lockfile is missing data\")]\n    LockfileIsMissingData,\n    #[error(\"Lockfile is malformed (expected 0 at the end)\")]\n    LockfileIsMalformedExpected0AtTheEnd,\n    #[error(\"CorruptLockfile\")]\n    CorruptLockfile,\n    #[error(\"Lockfile is missing resolution data\")]\n    LockfileIsMissingResolutionData,\n    #[error(\"MissingPackageName\")]\n    MissingPackageName,\n    #[error(\"GlobError\")]\n    GlobError,\n    #[error(\"Invalid\")]\n    Invalid,\n    #[error(\"Lockfile validation failed: list is impossibly long\")]\n    LockfileValidationFailedListIsImpossiblyLong,\n    #[error(\"Lockfile validation failed: alignment mismatch\")]\n    LockfileValidationFailedAlignmentMismatch,\n    #[error(\"Lockfile validation failed: unexpected number of package fields\")]\n    LockfileValidationFailedUnexpectedNumberOfPackageFields,\n    #[error(\"Lockfile validation failed: invalid package list range\")]\n    LockfileValidationFailedInvalidPackageListRange,\n    #[error(\"Lockfile validation failed: invalid resolution tag\")]\n    LockfileValidationFailedInvalidResolutionTag,\n    #[error(\"Lockfile validation failed: invalid package meta\")]\n    LockfileValidationFailedInvalidPackageMeta,\n    #[error(\"Lockfile validation failed: invalid bin tag\")]\n    LockfileValidationFailedInvalidBinTag,\n    #[error(\"Lockfile validation failed: invalid package scripts\")]\n    LockfileValidationFailedInvalidPackageScripts,\n    #[error(\"InvalidNPMLockfile\")]","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/install/error.rs#L165-L201","documentation":"Generic 'invalid input' sentinel — the input to an install/lockfile operation failed an unspecified validity check. The specific invalid value is identified by the surrounding context/error chain, not this message.","triggerScenarios":"Thrown at src/install/error.rs:183 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the error context for which value was invalid","Validate inputs (package.json fields, lockfile contents) manually","Regenerate derived artifacts (bun.lock) from source manifests"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}