Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Make the order of sub-dependencies deterministic. #57

Merged
merged 1 commit into from
Mar 17, 2016

Conversation

davidaurelio
Copy link

This makes the order of dependencies deterministic, if modules have a common set of subdependencies.

In the dependency tree

├── a
│   ├── b
│   └── c
└── d
    ├── b
    └── c

The order of dependencies did depend on whether a or d finished scanning their dependencies first.

It could either be a, b, c, d or a, d, b, c. This change guarantees a depth-first order, for this tree that would be a, b, c, d


if (recursive) {
// doesn't block the return of this function invocation, but defers
// the resulution of collectionsInProgress.emptied.then(…)

Choose a reason for hiding this comment

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

nit: resolution

@davidaurelio davidaurelio force-pushed the make-dependency-order-deterministic branch 2 times, most recently from e1404d0 to df08704 Compare March 17, 2016 17:45
This makes the order of dependencies deterministic, if modules have a common set of subdependencies.

In the dependency tree
```
├── a
│   ├── b
│   └── c
└── d
    ├── b
    └── c
```

The order of dependencies did depend on whether `a` or `d` finished scanning their dependencies first.

It could either be `a, b, c, d` or `a, d, b, c`. This change guarantees a depth-first order, for this tree that would be `a, b, c, d`
@davidaurelio davidaurelio force-pushed the make-dependency-order-deterministic branch from df08704 to 1fd11d1 Compare March 17, 2016 17:47
davidaurelio added a commit that referenced this pull request Mar 17, 2016
Make the order of sub-dependencies deterministic.
@davidaurelio davidaurelio merged commit 815ca0d into master Mar 17, 2016
@davidaurelio davidaurelio deleted the make-dependency-order-deterministic branch April 27, 2016 16:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants