Skip to content

Commit

Permalink
feat: make builds reproducible
Browse files Browse the repository at this point in the history
By removing the timestamps from the bundled archives, builds can be made
reproducible, which helps auditing.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
  • Loading branch information
haraldh committed Feb 14, 2024
1 parent 242644c commit 74b533a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ bool BundleResourceContainer::GetStat(int index,
const_cast<mz_zip_archive*>(&m_ZipArchive), index)
? true
: false;
stat.modifiedTime = zipStat.m_time;
stat.modifiedTime = 0;
stat.crc32 = zipStat.m_crc32;
// This will limit the size info from uint64 to uint32 on 32-bit
// architectures. We don't care because we assume resources > 2GB
Expand Down
2 changes: 1 addition & 1 deletion external/CppMicroServices/third_party/miniz.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
// If MINIZ_NO_TIME is specified then the ZIP archive functions will not be able to get the current time, or
// get/set file times, and the C run-time funcs that get/set times won't be called.
// The current downside is the times written to your archives will be from 1979.
//#define MINIZ_NO_TIME
#define MINIZ_NO_TIME

// Define MINIZ_NO_ARCHIVE_APIS to disable all ZIP archive API's.
//#define MINIZ_NO_ARCHIVE_APIS
Expand Down

0 comments on commit 74b533a

Please sign in to comment.