-
Notifications
You must be signed in to change notification settings - Fork 7
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
Dependencies order is not always the same given the same input #10
Comments
Hey Fabio This definitely shouldn't happen. Is this behavior gone if you remove the plugin? Do you already have a test case by any chance? |
What do you mean? If I remove the plugin of course it will not happen since I won't call it. I have a test case, you can clone the repository I'm working on (that's where I found the problem) and run
So that later when I call the
As you probably guessed, removing the |
Are you sure gulp.src reliably returns the same result every time it runs? But anyway, I well check out your test case. |
Ah, I don't know, but if I have to guess I'd say that it's not, since that when sorting it your plugin's behaviour is consistent. Anyway is something the plugin should deal with I think. |
@fabiospampinato, I'm very sorry about dropping the ball here. I decided to add a note to the README since this turned out to be an issue with |
@fabiospampinato, yep, I discovered this while skimming through your impressive commit history to find the state from September 2015. :D |
Running the plugin multiple times gives different orders of files. I guess mainly because when 2 files have no dependencies the order doesn't really matter, but I think the result should be consistent, probably an initial alphanumeric sort of the files would be enough.
The text was updated successfully, but these errors were encountered: