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(InputFileResolver) Fix for potentially wrong order of files #81

Merged
merged 1 commit into from
Apr 11, 2016

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Apr 7, 2016

Wrong order when globbing promisses resolve in different order.

@simondel
Copy link
Member

simondel commented Apr 8, 2016

Why did the original code change the order and how does this code fix it?

}
files.forEach(f => resultFiles.push(f));
Copy link
Member Author

Choose a reason for hiding this comment

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

This was the old way of pusing files to the result array. Per expression a globbing promise get's resolved. The promisses get created in the correct order, but the resolving can happen in any order. The pushing on the resultFiles array will in a random order.

@nicojs
Copy link
Member Author

nicojs commented Apr 8, 2016

See my remarks in the file changed tab.

@nicojs
Copy link
Member Author

nicojs commented Apr 11, 2016

Was my response clear? Can this PR be closed?

@simondel
Copy link
Member

Yes, thanks for the response!

@simondel simondel merged commit f351ad4 into master Apr 11, 2016
@simondel simondel deleted the fix-wrong-order-input-files branch April 11, 2016 06:45
nicojs added a commit that referenced this pull request Jul 30, 2016
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