mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #451] Config file silently ignored with unexpected property #200
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @edbrannin on GitHub (Dec 5, 2024).
Original GitHub issue: https://github.com/bootandy/dust/issues/451
Steps to reproduce:
~/.config/dust/config.toml:dust~/.config/dust/config.tomldustExpected result:
dustrunsdustprints a warning about an invalid config-file option...ignore-directoryon line 1 of ~/.config/dust/config.tomlObserved result:
@jjvliu commented on GitHub (Dec 19, 2024):
I confirmed this issue in the current version 1.1.1. The entire config file is ignored if I add certain key/value pairs. In my case, I tried either
~/.dust.tomlor~/.config/dust/config.tomlwith the same result.For example, this works:
but trying to add any of these key/value pairs causes the entire config file to be ignored:
I stopped 2/3 of the way down the
--helplist but hopefully this helps with troubleshooting.@Its-Just-Nans commented on GitHub (Dec 30, 2024):
It's because of
#[serde(deny_unknown_fields)]Made #456
@bootandy commented on GitHub (Jan 15, 2025):
Thank you @Its-Just-Nans