-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make static package archives deterministic
I noticed that the Jest test that verifies the stability of these hashes was flaking and determined that the output was, in fact, not determinstic. I beleve there are two possibile sources of nondeterminism in these zips: 1. The order of files being globbed may be nondeterministic 2. Concurrency in archiver's stat queue causes nondeterminism In the end, I believe most of the problem is likely caused by 2, but I figured that we might as well address the theoretical glob order at the same time. More info: archiverjs/node-archiver#383 (comment)
- Loading branch information
Showing
2 changed files
with
70 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters