{"record":{"id":"8b22d79cb568f5bf","repo":"jdx/mise","slug":"unsupported-output-file-type","errorCode":null,"errorMessage":"unsupported output file type: {}","messagePattern":"unsupported output file type: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/task/task_cache.rs","lineNumber":1601,"sourceCode":"            metadata\n                .modified()\n                .ok()\n                .and_then(|m| m.duration_since(UNIX_EPOCH).ok())\n                .map(|d| d.as_secs() as i64)\n                .unwrap_or(0),\n        );\n        if metadata.file_type().is_symlink() {\n            header.set_size(0);\n            archive.append_link(&mut header, &rel, fs::read_link(&abs)?)?;\n        } else if metadata.is_dir() {\n            header.set_size(0);\n            archive.append_data(&mut header, &rel, std::io::empty())?;\n        } else if metadata.is_file() {\n            header.set_size(metadata.len());\n            archive.append_data(&mut header, &rel, File::open(&abs)?)?;\n            restored_bytes = restored_bytes.saturating_add(metadata.len());\n        } else {\n            bail!(\"unsupported output file type: {}\", rel.display());\n        }\n    }\n    let encoder = archive.into_inner()?;\n    encoder.finish()?;\n    Ok(restored_bytes)\n}\n\n#[cfg(unix)]\nfn metadata_mode(metadata: &fs::Metadata) -> u32 {\n    use std::os::unix::fs::PermissionsExt;\n    metadata.permissions().mode()\n}\n\n#[cfg(not(unix))]\nfn metadata_mode(metadata: &fs::Metadata) -> u32 {\n    if metadata.permissions().readonly() {\n        0o444\n    } else {","sourceCodeStart":1583,"sourceCodeEnd":1619,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/task/task_cache.rs#L1583-L1619","documentation":"While archiving task cache outputs, mise only supports regular files, directories, and symlink placeholders (empty data entries); any other file type (fifo, socket, device node) is rejected. Special files cannot be meaningfully archived and restored, so archiving bails out.","triggerScenarios":"A task output directory contains a named pipe, unix socket, or device file (e.g. created by a dev server, test runner, or `mkfifo`) when the cache is being saved/archived.","commonSituations":"Build/test tooling leaves sockets or fifos in the output dir (e.g. webpack dev server sockets, test IPC pipes); CI artifacts directory reused between runs.","solutions":["Delete the special file from the output directory before the task finishes","Configure the build tool to write sockets/pipes outside the outputs directory","Narrow the outputs pattern so special files are excluded (e.g. glob only real files)"],"exampleFix":"# before\noutputs = ['out/']\n# after: exclude the socket, capture only real files\noutputs = ['out/**/*.js']","handlingStrategy":"validation","validationCode":"# find non-regular files in outputs\nfind out/ ! -type f ! -type d ! -type l -print","typeGuard":null,"tryCatchPattern":"if err contains 'unsupported output file type':\n    remove_special_files_from_output_dir()","preventionTips":["Configure dev servers/test runners to put sockets/fifos outside output dirs","Clean the output dir at the start of the task","Glob narrowly instead of capturing whole directories that may hold special files"],"tags":["task-cache","archive","unsupported-file-type"],"backgroundTag":"unsupported-operation","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"}