fix(doctor): sync writes to the module's own file, not the invoking justfile #79

Merged
larandar merged 1 commit from agent.teyla/Jostoph:fix/doctor-sync-target into main 2026-08-13 09:02:08 +00:00
Owner

sync's overwrite target was justfile(), which resolves to whatever
justfile invoked the recipe. Since every repo pulls .doctor.just in via
mod? doctor '.doctor.just', that meant a run of just doctor::sync
clobbered the repo's own top-level justfile instead of updating the
doctor's copy. module_file() is the function that actually names the
current mod's source file.

sync's overwrite target was `justfile()`, which resolves to whatever justfile invoked the recipe. Since every repo pulls .doctor.just in via `mod? doctor '.doctor.just'`, that meant a run of `just doctor::sync` clobbered the repo's own top-level justfile instead of updating the doctor's copy. `module_file()` is the function that actually names the current mod's source file.
sync's overwrite target was `justfile()`, which resolves to whatever
justfile invoked the recipe. Since every repo pulls .doctor.just in via
`mod? doctor '.doctor.just'`, that meant a run of `just doctor::sync`
clobbered the repo's own top-level justfile instead of updating the
doctor's copy. `module_file()` is the function that actually names the
current mod's source file.
larandar deleted branch fix/doctor-sync-target 2026-08-13 09:02:08 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Ting/Jostoph!79
No description provided.