Skip to content

doctor reports a broken link as "did not create" while sync removes it #941

Closed

Description

@runkids

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.

Activity

  1. added
    bug
    sync
    on Nov 17, 2026
  2. runkids commented on Nov 17, 2026

    @runkids
    OwnerAuthor

    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.

  3. added a commit that references this issue on Nov 17, 2026
    7af9224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsync

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions