Willie
9fec8669bb
fix(sync): resolve race condition for targets sharing the same path
Multiple targets (e.g. universal/amp/kimi/replit) share ~/.config/agents/skills.
Parallel sync caused concurrent goroutines to race on os.Symlink for the same
destination, producing "file exists" errors.
Fix: group entries by resolved target path so same-path targets run sequentially
within one goroutine. Different-path targets remain fully parallel.
Also addresses PR #52 review feedback:
- audit: replace O(N²) findElapsed with O(1) index-aligned elapsed slice
- test-brew-upgrade: explicit go check + mktemp -d (replaces || true and /tmp)
Add 6 integration tests covering shared-path race condition, idempotency,
--force mode, mixed paths, filters, and output verification.
2026-02-26 19:58:24 +08:00
..
2026-02-25 07:02:54 +08:00
2026-02-25 07:02:54 +08:00
2026-02-24 01:47:38 +08:00
2026-02-25 07:02:54 +08:00
2026-02-21 06:07:35 +08:00
2026-02-25 07:02:54 +08:00
2026-02-26 01:07:15 +08:00
2026-02-25 07:02:54 +08:00
2026-02-16 00:08:59 +08:00
2026-02-11 03:40:54 +08:00
2026-02-25 07:02:54 +08:00
2026-02-26 14:34:35 +08:00
2026-02-25 07:02:54 +08:00
2026-02-16 00:08:59 +08:00
2026-02-16 00:08:59 +08:00
2026-02-11 03:40:54 +08:00
2026-02-13 14:21:37 +08:00
2026-02-13 14:21:37 +08:00
2026-02-24 01:47:38 +08:00
2026-02-24 01:47:38 +08:00
2026-02-23 04:18:01 +08:00
2026-02-21 06:07:35 +08:00
2026-02-18 22:23:50 +08:00
2026-02-18 22:23:50 +08:00
2026-02-18 22:23:50 +08:00
2026-02-25 07:02:54 +08:00
2026-02-25 07:02:54 +08:00
2026-02-18 22:23:50 +08:00
2026-02-18 22:23:50 +08:00
2026-02-25 07:02:54 +08:00
2026-02-23 04:18:01 +08:00
2026-02-24 01:47:38 +08:00
2026-02-25 07:02:54 +08:00
2026-02-24 01:47:38 +08:00
2026-02-21 06:07:35 +08:00
2026-02-25 07:02:54 +08:00
2026-02-25 07:02:54 +08:00
2026-02-26 13:18:58 +08:00
2026-02-16 00:08:59 +08:00
2026-02-24 01:47:38 +08:00
2026-02-11 03:40:54 +08:00
2026-02-22 15:13:10 +08:00
2026-02-21 21:12:51 +08:00
2026-02-16 10:41:14 +08:00
2026-02-13 14:21:37 +08:00
2026-02-11 03:40:54 +08:00
2026-02-16 00:08:59 +08:00
2026-02-16 00:08:59 +08:00
2026-02-11 03:40:54 +08:00
2026-02-26 13:41:43 +08:00
2026-02-16 00:08:59 +08:00
2026-02-26 19:58:24 +08:00
2026-02-20 13:45:52 +08:00
2026-02-25 07:02:54 +08:00
2026-02-16 00:08:59 +08:00
2026-02-21 06:07:35 +08:00
2026-02-21 06:07:35 +08:00
2026-02-16 10:41:14 +08:00
2026-02-16 00:08:59 +08:00
2026-02-16 10:41:14 +08:00
2026-02-25 07:02:54 +08:00
2026-02-25 07:02:54 +08:00
2026-02-16 10:41:14 +08:00
2026-02-21 06:07:35 +08:00
2026-02-23 04:18:01 +08:00
2026-02-26 01:07:15 +08:00
2026-02-26 01:07:15 +08:00
2026-02-25 07:02:54 +08:00
2026-02-16 14:51:13 +08:00
2026-02-11 03:40:54 +08:00
2026-02-16 10:41:14 +08:00