Skip to content

fix(runt): use plist binary path for version check in doctor#1260

Merged
rgbkrk merged 1 commit intomainfrom
fix/doctor-version-check-plist-path
Mar 27, 2026
Merged

fix(runt): use plist binary path for version check in doctor#1260
rgbkrk merged 1 commit intomainfrom
fix/doctor-version-check-plist-path

Conversation

@rgbkrk
Copy link
Copy Markdown
Member

@rgbkrk rgbkrk commented Mar 27, 2026

Summary

  • Fix runt daemon doctor version_match check using the wrong binary path on macOS

Context

Follow-up to #1256. The version_match check in doctor was calling default_binary_path() independently, which resolves to current_exe() when running from inside the app bundle. Since current_exe() is runt (not runtimed), get_binary_version() failed and version_match showed [unknown] (installed binary not found).

Now reuses the binary_path from the top of run_checks(), which on macOS reads from the plist (the actual runtimed binary that launchd runs).

Test plan

  • env -i HOME=$HOME runt-nightly daemon doctor shows version_match as [ok] instead of [unknown]

The version_match check was using default_binary_path() independently,
which could resolve to the wrong binary (e.g., runt instead of runtimed
when current_exe() is the runt CLI inside the app bundle). Now reuses
the binary_path from the top of run_checks(), which on macOS reads from
the plist (what launchd actually runs).
@github-actions github-actions Bot added the daemon runtimed daemon, kernel management, sync server label Mar 27, 2026
@rgbkrk rgbkrk merged commit 279d4fe into main Mar 27, 2026
23 of 26 checks passed
@rgbkrk rgbkrk deleted the fix/doctor-version-check-plist-path branch March 27, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

daemon runtimed daemon, kernel management, sync server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant