-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Always build the same input files to a stable output #299
Conversation
(Leaning just on find for order, two different checkouts will produce different file list orders for different people building, on some OS:es / file systems.)
@johan, could you add appropriate entries to CONTRIBUTORS and AUTHORS as well? |
Certainly. |
Looks good, thanks! Would you be willing to make a similar pull request in our preview branch for v2? We have replaced the shell build scripts with python-based scripts. |
Sure; sounds worthwhile. |
Ah, on a closer read – don't hold your breath; my python is rusty, and I don't use the v2 branch myself for anything yet, so I probably won't take time to do that until I end up actually using/needing it there myself. |
Check out build/shakaBuildHelpers.py. getAllFiles() is the equivalent to v1's find commands. |
Always build the same input files to a stable output
Always build the same input files to a stable output
Always build the same input files to a stable output
Leaning just on
find
for order, two different checkouts will produce different file list orders for different people building it, at the moment, on some OS:es / file systems. Sorting the input file list prior to compiling makes sure that built output will produce the same result no matter who builds it where, which is all sorts of helpful when the built file is also under version control.