shiv icon indicating copy to clipboard operation
shiv copied to clipboard

Produced zipapp is not reproducible due to `_bootstrap` file ordering

Open timothyg-stripe opened this issue 1 year ago • 0 comments

👋 We are using shiv in reproducible mode, but we found that the output is not idempotent due to this block of code that adds the _bootstrap directory:

https://github.com/linkedin/shiv/blob/a353d10ecd785c6bd67ccd08b642437e7204be57/src/shiv/builder.py#L165-L177

In particular, iter_package_files(bootstrap) (which eventually calls Path.iterdir()) is not guaranteed to be in any particular order.

timothyg-stripe avatar Nov 18 '24 23:11 timothyg-stripe