{"record":{"id":"1c2605aab889bc90","repo":"wasmerio/wasmer","slug":"build-remote-cannot-be-combined-with-publish-p","errorCode":null,"errorMessage":"--build-remote cannot be combined with --publish-package","messagePattern":"--build-remote cannot be combined with --publish-package","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/cli/src/commands/app/deploy.rs","lineNumber":557,"sourceCode":"        let owner = crate::utils::prompts::prompt_for_namespace(\n            \"Who should own this app?\",\n            None,\n            Some(&user),\n        )?;\n\n        Ok(owner)\n    }\n}\n\n#[async_trait::async_trait]\nimpl AsyncCliCommand for CmdAppDeploy {\n    type Output = ();\n\n    async fn run_async(self) -> Result<Self::Output, anyhow::Error> {\n        let client = login_user(&self.env, !self.non_interactive, \"deploy an app\").await?;\n\n        if self.build_remote && self.publish_package {\n            anyhow::bail!(\"--build-remote cannot be combined with --publish-package\");\n        }\n\n        if self.build_remote {\n            self.handle_remote_build(&client).await?;\n            return Ok(());\n        }\n\n        let (app_config_path, base_dir_path) = self.resolve_app_paths()?;\n\n        if !app_config_path.is_file() && self.ensure_app_config {\n            let owner = if let Some(owner) = &self.owner {\n                owner.clone()\n            } else if self.non_interactive {\n                anyhow::bail!(\"No owner specified: use --owner <owner>\");\n            } else {\n                let user =\n                    wasmer_backend_api::query::current_user_with_namespaces(&client, None).await?;\n                crate::utils::prompts::prompt_for_namespace(","sourceCodeStart":539,"sourceCodeEnd":575,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/cli/src/commands/app/deploy.rs#L539-L575","documentation":"Error \"--build-remote cannot be combined with --publish-package\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/cli/src/commands/app/deploy.rs:557 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5","analyzedAt":"2026-09-01T23:06:31.009Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}