Skip to content

Let 'config -w' create the config file it is pointed at - #417

Merged
folbricht merged 1 commit into
masterfrom
fix-config-write-missing-file
Sep 3, 2026
Merged

folbricht merged 1 commit into
masterfrom
fix-config-write-missing-file

Conversation

@folbricht

Copy link
Copy Markdown
Owner

A config file named with --config had to exist before any command ran, including the one whose job is to write it. desync --config new.json config -w, the example in the command's own help and in docs/configuration.md, failed with no such file or directory and wrote nothing.

The missing file is now recorded during initialization rather than being fatal there, and reported before running any command other than config. A config file that exists but cannot be read or parsed remains fatal, and a missing config in the default location is still ignored.

A config file named with --config had to exist before any command ran,
including the one whose job is to write it. 'desync --config new.json
config -w', the example in the command's own help and in the docs, failed
with "no such file or directory" and wrote nothing.

Record the missing file during initialization instead of exiting there,
and report it before running any command other than 'config'. A config
file that exists but can't be read or parsed remains fatal.
@folbricht
folbricht merged commit d12697b into master Sep 3, 2026
9 checks passed
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.

2 participants

⌂ 换网址