`conda doctor --fix`: missing-files fixer fails with `install() missing 1 required positional argument: parser`
What happened?
Running conda doctor --fix in conda 26.1.0 fails when attempting to fix packages with missing files:
Environment Health Report for: /path/to/env
✅ There are no packages with altered files.
✅ The environment is consistent.
✅ The environment is listed in the environments.txt file.
✅ File locking is supported.
❌ Missing Files:
python.app-3-py313h80987f9_2: 7
✅ No pinned specs found in /path/to/env/conda-meta/pinned.
============================================================
Running fixes...
============================================================
No packages with altered files found.
No inconsistent packages found.
Environment is already registered in environments.txt: /path/to/env
Found 1 package(s) with missing files:
python.app-3-py313h80987f9_2: 7 missing file(s)
Reinstall these packages to restore missing files? (y/[n])? y
WARNING conda.plugins.subcommands.doctor:execute(120): Error running fix: missing-files (install() missing 1 required positional argument: 'parser')
No pinned file found at /path/to/env/conda-meta/pinned
Expected behavior
The missing files should be fixed by reinstalling the affected package.
Root cause
In conda/cli/install.py, the reinstall_packages() function calls install(args) on line 92, but the install() function signature requires two positional arguments: def install(args, parser, command="install").
The parser argument is missing in the call.
Conda Info
conda 26.1.0, macOS
Additional Context
This regression was introduced when reinstall_packages was moved in commit 301ec43. The fix should make the parser argument optional in install() since it's only used for the deprecated --clone path.