mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
follow_source_links only follows a link the user made by hand, so the guards (source or parent, sync target overlap, link chain) surfaced in doctor only after the link existed, and Windows users had to pick between a junction and mklink /D themselves. link checks the prospective target with Follow.Allow, which shares the guard rules and reason strings with the walk, before creating a junction on Windows or an absolute symlink elsewhere. It warns when the target is not a git checkout and leaves follow_source_links alone unless --enable is given. unlink moves only the link entry to trash, the same way uninstall removes a first-level link, so the target is never touched and trash restore undoes it. internal/sourcelink holds both operations so the dashboard can call them too. Refs #419