{"record":{"id":"37c08f2ad149e5bd","repo":"jdx/mise","slug":"packslip-plugin-sources-require-the-vfox-plugin-ty","errorCode":null,"errorMessage":"packslip plugin sources require the vfox plugin type","messagePattern":"packslip plugin sources require the vfox plugin type","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/plugins/install.rs","lineNumber":157,"sourceCode":"    config: &Arc<Config>,\n    name: &str,\n    git_url: Option<String>,\n    force: bool,\n    dry_run: bool,\n) -> Result<()> {\n    let explicit_type = name.contains(':');\n    let (mut plugin_type, name) = PluginType::from_plugin_config(name);\n    let git_url = git_url.or_else(|| {\n        config\n            .get_repo_url(name)\n            .filter(|url| url.starts_with(\"packslip:\"))\n    });\n    if git_url\n        .as_deref()\n        .is_some_and(|url| url.starts_with(\"packslip:\"))\n    {\n        if explicit_type && plugin_type != PluginType::Vfox {\n            bail!(\"packslip plugin sources require the vfox plugin type\");\n        }\n        plugin_type = PluginType::Vfox;\n    }\n    let name = name.to_string();\n    if plugin_type == PluginType::Package && crate::system::packages::is_builtin_manager_name(&name)\n    {\n        bail!(\"package plugin '{name}' collides with a built-in package manager\");\n    }\n    let path = dirs::PLUGINS.join(name.to_kebab_case());\n    let plugin = plugin_type.plugin(name.clone());\n    if let Some(url) = git_url {\n        plugin.set_remote_url(url);\n    }\n    if !force && plugin.is_installed() {\n        warn!(\"Plugin {name} already installed\");\n        warn!(\"Use --force to install anyway\");\n    } else {\n        let mpr = MultiProgressReport::get();","sourceCodeStart":139,"sourceCodeEnd":175,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/plugins/install.rs#L139-L175","documentation":"packslip plugin sources are only meaningful for vfox-type plugins. If the user explicitly specifies a plugin type (e.g. asdf or package) that is not vfox while using a `packslip:` source, mise rejects the combination rather than silently ignoring the declared type.","triggerScenarios":"`mise plugins install <name> packslip:owner/repo` combined with an explicit `--type asdf` (or another non-vfox type), i.e. explicit_type && plugin_type != vfox.","commonSituations":"Copy-pasting an asdf plugin install command and swapping the URL for a packslip source; misunderstanding that packslip sources imply the vfox plugin type.","solutions":["Drop the explicit --type flag and let mise infer vfox from the packslip: source","Pass `--type vfox` explicitly alongside the packslip: URL"],"exampleFix":"// before\nmise plugins install mytool --type asdf packslip:owner/repo\n// after\nmise plugins install mytool packslip:owner/repo   # vfox implied","handlingStrategy":"validation","validationCode":"[[ \"$SRC\" == packslip:* && \"$TYPE\" != \"vfox\" ]] && echo 'omit --type or pass --type vfox for packslip sources'","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Never pair packslip: sources with an explicit non-vfox --type","Let mise infer the plugin type from the source prefix","Read `mise plugins install --help` for source/type compatibility"],"tags":["plugins","packslip","vfox","cli-argument","conflicting-options"],"backgroundTag":"incompatible-source-type","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"}