Skip to content

fix(sync): honor dry_run flag in performFullSync#306

Open
davemorin wants to merge 1 commit intogarrytan:masterfrom
davemorin:osc/140-fullsync-dryrun
Open

fix(sync): honor dry_run flag in performFullSync#306
davemorin wants to merge 1 commit intogarrytan:masterfrom
davemorin:osc/140-fullsync-dryrun

Conversation

@davemorin
Copy link
Copy Markdown

Summary

performFullSync (first-sync / force-full paths) did not check opts.dryRun, so sync_brain with dry_run: true on a first sync still wrote pages. The incremental sync path correctly returned a dry_run status result, but the full sync path skipped the check entirely.

Adds an early return matching the incremental path pattern (line 152-170) when opts.dryRun is true.

Fixes #140

This contribution was developed with AI assistance (Claude Code).

performFullSync was called on first-sync and force-full paths without
checking opts.dryRun. The incremental sync path (line 152) correctly
checked the flag, but the full sync path skipped it entirely.

Fixes garrytan#140
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.

[Low] performFullSync ignores dry_run flag on first/full sync

1 participant