r-darwish / topgrade

Upgrade everything
GNU General Public License v3.0
3.37k stars 162 forks source link

Abort upgrade if config won't serialize instead of running default configuration #977

Open focusaurus opened 1 year ago

focusaurus commented 1 year ago

What did you expect to happen?

When running topgrade with an unfield in the configuration, I expect topgrade to abort with an error exit code and clear error message including the full path to the config file and a clear error message.

What actually happened?

topgrade proceeded with a default config and upgraded many things I usually disable upgrades for.

Additional Details

2022-07-24T14:59:55.643Z ERROR topgrade::config > failed to load configuration: unknown field `pamac_arguments`, expected one of `yay_arguments`, `arch_package_manager`, `show_arch_news`, `trizen_arguments`, `pikaur_arguments`, `dnf_arguments`, `apt_arguments`, `enable_tlmgr`, `redhat_distro_sync`, `rpm_ostree`, `emerge_sync_flags`, `emerge_update_flags` for key `linux` at line 18 column 1