-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does rustfmt look in $HOME/.config/rustfmt on macOS? #4613
Comments
rustfmt's config file resolution process is documented here and the user config directory resolution is managed by the To be fully transparent, I'm not particularly keen on introducing an additional Mac-only phase to that probe path/resolution sequencing. However, if anyone feels strongly enough about this to submit a PR I'd be willing to review and consider incorporating it provided it wasn't too invasive and didn't add undo complexity and maintenance overhead. |
The In fact, rustfmt actually uses dirs 2, which puts the macOS config dir as My recommendation would be to update dirs to v3 or v4 (I don't know if the v4 breaking change affects rustfmt), then change the relevant code to read from The end result here is that rustfmt would start looking for Or maybe it's better to have the current |
@lilyball |
I see that
rustfmt
checks for a config file in$HOME/Library/Preferences/rustfmt
. Does it also check in$HOME/.config/rustfmt
? From my testing, it seems like it does not (assuming it's only on Linux that it does). If not, is there a chance that this could be supported? Thanks!The text was updated successfully, but these errors were encountered: