Skip to content

Fix backup crash on pre-existing symlinks (#35) - #36

Merged
dsaenztagarro merged 1 commit into
masterfrom
fix/backup-preexisting-symlinks
Mar 22, 2026
Merged

dsaenztagarro merged 1 commit into
masterfrom
fix/backup-preexisting-symlinks

Conversation

@dsaenztagarro

Copy link
Copy Markdown
Owner

Summary

  • Fix Errno::EEXIST crash when cp_r_regular_files encounters pre-existing symlinks in the backup directory
  • Add FileUtils.rm_f before FileUtils.ln_s to handle leftover symlinks from partial backup runs
  • Bump version to 0.4.2

Closes #35

Test plan

  • Added spec for pre-existing symlinks in backup directory
  • All existing specs pass (bundle exec rspec spec/dotsync/actions/pull_action_spec.rb)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dsaenztagarro
dsaenztagarro merged commit 5a772dd into master Mar 22, 2026
0 of 2 checks passed
@dsaenztagarro
dsaenztagarro deleted the fix/backup-preexisting-symlinks branch March 22, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cp_r_regular_files crashes on pre-existing symlinks during backup

1 participant