{"record":{"id":"ced31d714113867d","repo":"jdx/mise","slug":"sync-paused-resolve-conflicts-across-the-complete","errorCode":null,"errorMessage":"sync paused: resolve conflicts across the complete repository before publication: {}","messagePattern":"sync paused: resolve conflicts across the complete repository before publication: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/history/sync/publish.rs","lineNumber":56,"sourceCode":"        // line merge can conflict on independent additions or combine policy\n        // changes into invalid metadata. Validate its structured merge first.\n        if let Some(base) = &heads.base {\n            use crate::system::history::manifest::Manifest;\n            if let (Some(base), Some(ours), Some(theirs)) = (\n                Manifest::read(repo, base)?,\n                Manifest::read(repo, local)?,\n                Manifest::read(repo, remote)?,\n            ) {\n                merged = Manifest::merge(&base, &ours, &theirs)?.write(repo, &merged)?;\n                conflicts.retain(|path| path != crate::system::history::manifest::PATH);\n            }\n        }\n        let unresolved: Vec<_> = conflicts\n            .iter()\n            .filter(|path| !accepted.contains(*path))\n            .collect();\n        if !unresolved.is_empty() {\n            bail!(\n                \"sync paused: resolve conflicts across the complete repository before publication: {}\",\n                unresolved\n                    .into_iter()\n                    .map(String::as_str)\n                    .collect::<Vec<_>>()\n                    .join(\", \")\n            );\n        }\n        // Accepted choices were validated against saved, live, and remote\n        // versions. Carry their already-encrypted saved objects, not a new\n        // plaintext publication representation.\n        let overlays = conflicts\n            .into_iter()\n            .map(|path| {\n                Ok(crate::system::history::shadow::Overlay {\n                    object: repo.object_at(local, &path)?,\n                    path,\n                })","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/history/sync/publish.rs#L38-L74","documentation":"Before publishing a synced history tree, mise checks that every conflict detected between local and incoming state has been explicitly accepted. Any still-unresolved conflict path aborts publication, listing the offending paths, because pushing would silently drop one side of the conflict.","triggerScenarios":"Running `mise dot sync` (or publish) while `conflicts` contains paths absent from the `accepted` set — i.e. the user has not decided conflicting files after a pull or reconcile produced conflicts.","commonSituations":"A `mise dot pull` surfaced conflicting dotfiles; the user ran sync again without resolving/accepting them; an automated sync job runs while conflicts from a prior pull remain pending.","solutions":["Resolve or accept each listed conflict path (e.g. via the interactive conflict prompt or by accepting current/incoming for each path).","Run `mise dot pull` to re-enter conflict resolution and accept the listed paths.","After accepting all conflicts, re-run `mise dot sync` to publish."],"exampleFix":"// before: publish with unresolved conflicts\nmise dot sync // fails listing conflicts\n// after: accept each conflict, then publish\nmise dot pull        // resolve/accept each listed path\nmise dot sync        // succeeds once accepted contains all conflicts","handlingStrategy":"validation","validationCode":"// check for unresolved conflicts before syncing\nlet unresolved: Vec<_> = conflicts.iter().filter(|p| !accepted.contains(*p)).collect();\nif !unresolved.is_empty() {\n    eprintln!(\"resolve first: {}\", unresolved.join(\", \"));\n    return;\n}","typeGuard":null,"tryCatchPattern":"match sync() {\n    Err(e) if e.to_string().starts_with(\"sync paused: resolve conflicts\") => prompt_conflict_resolution(),\n    other => other,\n}","preventionTips":["Run `mise dot pull` promptly after a conflict is reported and accept every listed path.","Never run sync while the conflict list is non-empty.","Check conflict status (`mise dot` status/conflict listing) before scripted syncs."],"tags":["sync","conflict","git","user-action-required"],"backgroundTag":"invalid-state-transition","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"}