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

Fix ls-files call in large monorepos #277

Merged
merged 3 commits into from
Aug 29, 2019

Conversation

ejlangev
Copy link
Contributor

I came across this issue when trying to run ember-cli-update in a large monorepo. It kept giving errors which led me to #269 and the accompanying issue ember-cli/ember-cli-update#583.

The fix in the above PR did not create a big enough buffer for the monorepo I was trying to use this on. Rather than trying to bump up the buffer size again which seems to not be a general solution I created a secondary command execution strategy which uses spawn rather than exec because spawn is a stream rather than a buffer. This seems to fix the problem although the runtime is quite long still for such a big repo.

Happy to make any tweaks necessary or rethink things if it helps.

Copy link
Owner

@kellyselden kellyselden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great work. Thank you very much!

src/git-remove-all.js Outdated Show resolved Hide resolved
@ejlangev
Copy link
Contributor Author

Okay I brought back the separate function. Let me know if you have other notes.

@kellyselden kellyselden merged commit 8ab164b into kellyselden:master Aug 29, 2019
@kellyselden
Copy link
Owner

Thank you! It should be released soon.

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

Successfully merging this pull request may close these issues.

2 participants