Skip to content

Commit 5d6b61e

Browse files
authored
Source tarball reproducible (apache#3143)
`git --mtime` MUST use the time zone for reproducible builds.
1 parent 2e4f42f commit 5d6b61e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-logic/src/main/kotlin/publishing/rootProject.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ internal fun configureOnRootProject(project: Project) =
6464
archive \
6565
--prefix="${e.baseName.get()}/" \
6666
--format=tar \
67-
--mtime="1980-02-01 00:00:00" \
67+
--mtime="1980-02-01 00:00:00 UTC" \
6868
HEAD | gzip -6 --no-name > "${e.sourceTarball.get().asFile.relativeTo(projectDir)}"
6969
"""
7070
.trimIndent(),

0 commit comments

Comments
 (0)