You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doctor reports a broken link as "did not create" while sync removes it #941
doctor and prune disagree about one kind of broken link.
checkBrokenSymlinks (cmd/skillshare/doctor.go:1197) calls a broken link skillshare's only when Manifest.OwnsLink is true: the manifest records a link under that name, or the link points into the source. Prune (sync.OrphanLink) removes a broken external link when the manifest records the name at all, including as a copy.
When it happens: a target was in copy mode, so the manifest records a checksum for the skill. The target switches to merge mode, the copy becomes a link, and the source later moves before the next sync rewrites the manifest.
Expected:doctor reports the link as broken and suggests skillshare sync. Actual:doctor lists it under links "skillshare did not create, kept" and suggests deleting it by hand. skillshare sync removes it.
Have doctor ask sync.OrphanLink whether prune would remove the link, for entries no source skill maps to.
Correction after reproducing: the trigger above cannot happen, because the sync that turns a copy into a link rewrites the manifest. It needs a recorded copy replaced by a broken link by hand or by another tool, and the skill removed from the source. Doctor then says "did not create, kept" while sync prunes the link.
Activity
runkids commentedon Nov 17, 2026
Correction after reproducing: the trigger above cannot happen, because the sync that turns a copy into a link rewrites the manifest. It needs a recorded copy replaced by a broken link by hand or by another tool, and the skill removed from the source. Doctor then says "did not create, kept" while sync prunes the link.
fix(diff): list only what sync prunes, and have doctor follow it (run…