Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Skip the windows directory when looking for plugins #582

Merged
merged 1 commit into from
Aug 8, 2017

Conversation

ryanfaerman
Copy link
Contributor

The buffalo command can seemingly hang when looking for plugins on some Windows systems. The %PATH% could have multiple entries containing C:\windows causing multiple file walks of the same directories.

Filewalking that path is fairly expensive, as it has many files and folders, most of which are Windows internals.

Adding this change dropped the startup time from ~30s to less than a second.

This contains windows internals and isn't a likely place for plugins
@markbates
Copy link
Member

Looks like code climate is failing.

@ryanfaerman
Copy link
Contributor Author

@markbates The line that Code Climate is failing on, isn't one that I changed. I'll run gofmt nevertheless.

@markbates markbates merged commit 5f4df85 into gobuffalo:master Aug 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants