Skip to content

Commit

Permalink
fix unstable hashing of files
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Sep 1, 2016
1 parent 32ca02e commit c1b504d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion features/support/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ module.exports = function() {
});
};

d3.queue()
// Note: we need a serialized queue here to ensure that the order of the files
// passed is stable. Otherwise the hash will not be stable
d3.queue(1)
.defer(addLuaFiles, this.PROFILES_PATH)
.defer(addLuaFiles, this.PROFILES_PATH + '/lib')
.awaitAll(hash.hashOfFiles.bind(hash, dependencies, callback));
Expand Down

0 comments on commit c1b504d

Please sign in to comment.