Add "name-only" fallbacks to conda doctor fixers
Author: ForgottenProgrammeCreated Sep 7, 2026Updated Sep 29, 2026
Labelstype::feature
Checklist
- I added a descriptive title
- I searched open requests and couldn't find a duplicate
What is the idea?
Follow-up to #16591.
Presently, when users run the fixers for the altered-files and missing-files health checks, conda tries to reinstall each package with the same exact name, version, and build.
Add a name-only fallback so that if the exact reinstall fails, conda retries with the package name alone. Warn that this fallback may install a different version or build.
If both attempts fail, report the exact specs that were requested and provide actionable next steps.
Why is this needed?
Failure to reinstall the exact package should not immediately fail the fix when another build is available. Users also need enough information to understand and recover from a failed reinstall.
What should happen?
- Wait for #16617 to merge, then implement the name-only fallback.
- Create a shared helper for constructing reinstall match specs from package metadata, as suggested in this review comment.
- Warn before retrying that the name-only fallback may install a different version or build.
- If the exact and name-only attempts both fail, show the attempted specs and actionable recovery guidance.
Additional context
No response
Source: conda/conda