Skip to content

ci(build): make the package archive reproducible - #7

Merged
studio-prisma merged 1 commit into
mainfrom
ci/reproducible-build
Oct 26, 2026
Merged

studio-prisma merged 1 commit into
mainfrom
ci/reproducible-build

Conversation

@studio-prisma

Copy link
Copy Markdown
Owner

tools/build-zip.sh produced a different archive on every run (file times of the checkout, unsorted entries). Rebuilding a release changed its checksum, as happened with trello-sync v0.6.0 today.

Now: file times set to the commit date, entries sorted, TZ=UTC zip -X; the trello-sync Python fallback writes fixed ZipInfo dates as well. Same approach as the subticket and api-endpoints builds.

Checked in Alpine: two builds of the same commit with different file times give identical SHA-256 (trello-sync: zip and Python path).

Commit date for every file, sorted entries, no extra zip fields. Building the same commit twice now yields the same bytes.
@studio-prisma
studio-prisma merged commit cd8e38b into main Oct 26, 2026
13 checks passed
@studio-prisma
studio-prisma deleted the ci/reproducible-build branch October 26, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant