-
Notifications
You must be signed in to change notification settings - Fork 295
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
1 parent
10761d9
commit ce41599
Showing
1 changed file
with
16 additions
and
4 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