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
{{ message }}
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
Given that the included rules are stored in a directory named 00-default, I assumed that ananicy would use the file names to order the rule files. I had my overriden rules in a directory named 10-overrides. This worked for a while but I didn't realize it ananicy just parses the files in the order the filesystem returns them. So currently, there doesn't seem to be a stable way to override the supplied rules for any given application (#265) since you can't be sure that the provided rules won't be loaded last.
Would a PR to walk the config directory in lexical order by welcome?
edit: actually, now that I'm actually reading through the code I think this is a 1-line change. sorting entries in find_files should do the trick, I think
The text was updated successfully, but these errors were encountered:
baodrate
added a commit
to baodrate/Ananicy
that referenced
this issue
Dec 2, 2020
This provides a stable rule parsing order. e.g.
A directoory named `10-overrides` will always be accessed after
`00-default`, rather than in the order the filesystem returns.
Closesnefelim4ag#274
This provides a stable rule parsing order. e.g.
A directoory named `10-overrides` will always be accessed after
`00-default`, rather than in the order the filesystem returns.
Closes#274
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Given that the included rules are stored in a directory named
00-default
, I assumed that ananicy would use the file names to order the rule files. I had my overriden rules in a directory named10-overrides
. This worked for a while but I didn't realize it ananicy just parses the files in the order the filesystem returns them. So currently, there doesn't seem to be a stable way to override the supplied rules for any given application (#265) since you can't be sure that the provided rules won't be loaded last.Would a PR to walk the config directory in lexical order by welcome?
edit: actually, now that I'm actually reading through the code I think this is a 1-line change. sorting
entries
infind_files
should do the trick, I thinkThe text was updated successfully, but these errors were encountered: