Skip to content
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

Config update traverses dir hierarchy downwards #793

Open
scop opened this issue Nov 27, 2023 · 0 comments
Open

Config update traverses dir hierarchy downwards #793

scop opened this issue Nov 27, 2023 · 0 comments

Comments

@scop
Copy link
Contributor

scop commented Nov 27, 2023

Not sure if this is a bug or intended behavior, but it appears dprint config update traverses the directory hierarchy downwards from the dir where it is invoked in. I find this surprising, I thought it'd just check if there are updates available for plugins that are included in the config, no tree traversal would be needed for that? I'm guessing it could be looking up what kind of files are present like it does for dprint init, but if it's that, I'm wondering why?

This can cause a significant delay when invoked in a dir that has lots of dirs and files in it. In my case, I'm using a ~/.dprint.jsonc in my home dir to serve as a "global config", and invoking dprint config update there takes quite a bit of time -- I haven't waited for it to actually finish. My workaround is to create an empty dir in my home dir, cd to that, and run the config update there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant