You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I've tried to get mirro-rs to load my config file to no avail. I'm using version 0.2.3.
I've checked the PCKGBLD file in the non-AUR package of Arch Linux to verify it expects toml.
export returns XDG_CONFIG_HOME=/home/leo/.config as expected.
I've tried starting via XDG_CONFIG_HOME=/home/leo/.config mirro-rs
I've tried $XDG_CONFIG_HOME/mirro-rs/mirro-rs.toml as location
I've tried $XDG_CONFIG_HOME/mirro-rs.toml as location
But not a single filter of my config seems to be loaded.
Describe the solution you'd like
In order to debug such a problem easier, I'd have loved to know where mirro-rs looksup my configuration file and/or if it failed to find one. (In case it did find one and there's a parsing issue)
Attachments
The used config file:
[general]
outfile = "~/mirrorlist"# must not end with trailing slash# Max number of mirrors to exportexport = 25view = "alphabetical"# alphabetical mirror-countsort = "score"# percentage, duration, delay, scorecache-ttl = 24url = "https://archlinux.org/mirrors/status/json/"rate-speed = truetimeout = 5#include = [# "https://cloudflaremirrors.com/archlinux/"#]
[filters]
countries = [ Japan, Germany ]
age = 24ipv6 = trueipv4 = trueisos = falseprotocols = [ "https" ]
completion-percent = 100
The text was updated successfully, but these errors were encountered:
As I watch the syntax highlighting of the parser for the toml here in the issue description, I notice that I have to use " for the counties strings.
Doing this fixed my issue entirely.
But as I have stated in the issue, it'd be good if parsing errors were reported to the user instead of failing silently, making one believe that the configuration isn't found or loaded at all.
Is your feature request related to a problem? Please describe.
version 0.2.3
.export
returnsXDG_CONFIG_HOME=/home/leo/.config
as expected.XDG_CONFIG_HOME=/home/leo/.config mirro-rs
$XDG_CONFIG_HOME/mirro-rs/mirro-rs.toml
as location$XDG_CONFIG_HOME/mirro-rs.toml
as locationBut not a single filter of my config seems to be loaded.
Describe the solution you'd like
In order to debug such a problem easier, I'd have loved to know where mirro-rs looksup my configuration file and/or if it failed to find one. (In case it did find one and there's a parsing issue)
Attachments
The used config file:
The text was updated successfully, but these errors were encountered: