Skip to content

fix: show doctor remediation for unfixed findings#3031

Open
immanuwell wants to merge 1 commit into
replicate:mainfrom
immanuwell:fix/doctor-remediation-output
Open

fix: show doctor remediation for unfixed findings#3031
immanuwell wants to merge 1 commit into
replicate:mainfrom
immanuwell:fix/doctor-remediation-output

Conversation

@immanuwell
Copy link
Copy Markdown

Small paper cut fix.

cog doctor --fix could print (no auto-fix available) even when the finding already had a remediation message. So the command knew what to say, it just wasnt showing it.

Repro:

  1. Make a cog.yaml with:
    build:
      python_version: "3.12"
    predict: "predict.py:Predictor"
  2. Do not create predict.py
  3. Run cog doctor --fix
  4. Before this patch, Predict reference ended with (no auto-fix available)
  5. Now it prints the actual remediation, like Create predict.py or update the predict field in cog.yaml

Also adds a unit test and a small integration test, nice and tidy.

@immanuwell immanuwell requested a review from a team as a code owner May 25, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant