snazy commented on code in PR #2432:
URL: https://github.com/apache/polaris/pull/2432#discussion_r2294266665
##########
build-logic/src/main/kotlin/Utilities.kt:
##########
@@ -61,3 +66,41 @@ fun JavaForkOptions.addSparkJvmOptions() {
"-Djdk.reflect.useDirectMethodHandle=false",
)
}
+
+/**
+ * Rewrites the given ZIP file.
+ *
+ * The timestamps of all entries are set to `1980-02-01 00:00`, zip entries
appear in a
+ * deterministic order.
+ */
+fun makeZipReproducible(source: File) {
+ val t = FileTime.fromMillis(318211200_000) // 1980-02-01 00:00 GMT
Review Comment:
Gradle uses the same timestamp. IIRC it's got something to do with ZIP file
format specialties...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]