oven-sh/bun · error · Error
Lockfile validation failed: invalid bin tag
Error message
Lockfile validation failed: invalid bin tag
What it means
Lockfile validation variant with human-text message: while validating the binary lockfile, a bin (executable mapping) entry carries a tag byte that is not one of the recognized bin-entry kinds, so the entry cannot be decoded; the lockfile is corrupt or from an incompatible version.
Solutions
- Regenerate bun.lock with `bun install`
- Align team Bun versions so lockfile bin formats match
- Report persistent validation failures with the lockfile attached
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/install/error.rs:197 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/bbf6421e14ebd9af.
Report an issue: GitHub.
Appendix: source
Thrown at src/install/error.rs:197
#[error("MissingPackageName")]
MissingPackageName,
#[error("GlobError")]
GlobError,
#[error("Invalid")]
Invalid,
#[error("Lockfile validation failed: list is impossibly long")]
LockfileValidationFailedListIsImpossiblyLong,
#[error("Lockfile validation failed: alignment mismatch")]
LockfileValidationFailedAlignmentMismatch,
#[error("Lockfile validation failed: unexpected number of package fields")]
LockfileValidationFailedUnexpectedNumberOfPackageFields,
#[error("Lockfile validation failed: invalid package list range")]
LockfileValidationFailedInvalidPackageListRange,
#[error("Lockfile validation failed: invalid resolution tag")]
LockfileValidationFailedInvalidResolutionTag,
#[error("Lockfile validation failed: invalid package meta")]
LockfileValidationFailedInvalidPackageMeta,
#[error("Lockfile validation failed: invalid bin tag")]
LockfileValidationFailedInvalidBinTag,
#[error("Lockfile validation failed: invalid package scripts")]
LockfileValidationFailedInvalidPackageScripts,
#[error("InvalidNPMLockfile")]
InvalidNPMLockfile,
#[error("NotSupported")]
NotSupported,
#[error("Unexpected")]
Unexpected,
#[error("NotSameFileSystem")]
NotSameFileSystem,
#[error("FailedToCopyFile")]
FailedToCopyFile,
#[error("InvalidBinCount")]
InvalidBinCount,
#[error("InvalidBinContent")]
InvalidBinContent,
View on GitHub (pinned to 8c5296ac45)