{"record":{"id":"ad098acb51df87fd","repo":"BoundaryML/baml","slug":"target-target-not-built-for-version-version","errorCode":null,"errorMessage":"target {target} not built for version {version}","messagePattern":"target (.+?) not built for version (.+?)","errorType":"exception","errorClass":"FetchError","httpStatus":null,"severity":"error","filePath":"baml_language/crates/baml_release/src/lib.rs","lineNumber":89,"sourceCode":"            Product::Wrapper => \"baml-wrapper\",\n        }\n    }\n}\n\n#[derive(Debug, thiserror::Error)]\npub enum FetchError {\n    #[error(\"network error fetching {url}: {source}\")]\n    Network { url: String, source: reqwest::Error },\n    #[error(\"HTTP {status} fetching {url}\")]\n    HttpStatus {\n        url: String,\n        status: reqwest::StatusCode,\n    },\n    #[error(\"manifest 404 for version {version} (not released yet?)\")]\n    ManifestNotFound { version: String },\n    #[error(\"manifest schema {got} not supported (max {max}); run `baml self-update`\")]\n    ManifestSchemaTooNew { got: u32, max: u32 },\n    #[error(\"target {target} not built for version {version}\")]\n    TargetNotInManifest { target: String, version: String },\n    #[error(\"sha256 mismatch for {url}: expected {expected}, got {got}\")]\n    ChecksumMismatch {\n        url: String,\n        expected: String,\n        got: String,\n    },\n    #[error(\"archive missing expected binary {name}\")]\n    BinaryNotInArchive { name: String },\n    #[error(\"archive contains unsafe path {path}\")]\n    UnsafeArchivePath { path: String },\n    #[error(\"disk error: {0}\")]\n    Io(#[from] std::io::Error),\n    #[error(\"zip archive error: {0}\")]\n    Zip(#[from] zip::result::ZipError),\n}\n\n#[derive(Debug, Clone)]","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/BoundaryML/baml/blob/bd85ce9dee1463ff04d27efd20531013a4ff46c1/baml_language/crates/baml_release/src/lib.rs#L71-L107","documentation":"FetchError::TargetNotInManifest is thrown by baml_release when the release manifest for the requested version exists but contains no entry for the requested target (platform/architecture triple). It means that specific version was never built (or is no longer published) for your platform.","triggerScenarios":"Calling an install/fetch API with a version whose manifest lacks the current target triple (e.g. requesting a very old version that did not yet ship aarch64-apple-darwin, or linux-musl builds).","commonSituations":"Installing an old BAML version on newer platforms (e.g. Apple Silicon before darwin-arm64 builds existed), using an unusual target like a musl or FreeBSD triple, CI matrices pinning versions predating platform support.","solutions":["Pick a newer version of the tool that includes builds for your target","Verify your target triple with `uname -m` / rustc -vV and confirm the release page lists it","If on an unsupported platform, build from source or use a container with a supported target","Check the version's published artifacts list to confirm which targets exist"],"exampleFix":"# before (aarch64 linux, old version had no arm builds)\n$ baml install --version 0.1.0\ntarget aarch64-unknown-linux-gnu not built for version 0.1.0\n# after\n$ baml install --version 0.204.0","handlingStrategy":"validation","validationCode":"let my_target = target_triple(); // e.g. aarch64-unknown-linux-gnu\nlet entry = manifest.targets.get(&my_target);\nif entry.is_none() {\n    eprintln!(\"version {v} has no build for {my_target}; pick another version\");\n}","typeGuard":"fn is_target_missing(e: &FetchError) -> bool {\n    matches!(e, FetchError::TargetNotInManifest { .. })\n}","tryCatchPattern":"match install(v) {\n    Err(FetchError::TargetNotInManifest { target, version }) => {\n        eprintln!(\"{target} not built for {version}; trying newer version\");\n        install_latest()\n    }\n    other => other,\n}","preventionTips":["Check the release page's artifact list for your target triple before pinning old versions","On Apple Silicon/ARM, avoid versions released before arm builds existed","Use containers with supported targets for exotic platforms","Test version pins in CI on the exact target matrix"],"tags":["platform","versioning","release"],"backgroundTag":"resource-not-found","analyzedSha":"bd85ce9dee1463ff04d27efd20531013a4ff46c1","analyzedAt":"2026-09-12T03:38:25.718Z","contentChangedAt":"2026-09-12T03:38:25.718Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}