Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix jarinfer cli output determinism (#884)
When invoking CLI, jar output sha is not constant. This breaks cacheability in build systems like Buck and Bazel. Binary investigation (see attached screenshot) of these jars show byte 0xa-0xd in PkZip header is what is changes, and corresponds to file modified date/time (see https://users.cs.jmu.edu/buchhofp/forensics/formats/pkzip.html). This PR is setting these times to 0 explicilty, so that jar sha remains constant between invocation. --------- Co-authored-by: Manu Sridharan <msridhar@gmail.com>
- Loading branch information