mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
sync previously skipped symlinks that pointed to the correct source, even if their format (absolute vs relative) didn't match the expected mode. This meant existing absolute symlinks in project mode were never converted to relative on subsequent syncs. Add linkNeedsReformat(dest, wantRelative) helper that checks whether the raw readlink result has the wrong format. All four 'already correct' skip points now check format and recreate when mismatched: - SyncTargetMergeWithSkills (skills merge mode) - SyncTarget (skills symlink mode) - syncExtraSymlinkMode (extras directory symlink) - syncOneExtraFile (extras per-file merge) Global mode is unaffected: shouldUseRelative returns false, so linkNeedsReformat never triggers on absolute links. Also fix macOS /var → /private/var path mismatch in TestSyncProject_RelativeSymlinks by EvalSymlinks on expected path.