Check a release
Every release records the commit it was built from and every package it was built with: the build system, the toolchain, even the C compiler and linker. So anyone can build it again and check that it is the same.
$ plinto reproduce HelloApp 1.0-3
clones the release's commit, builds it as a release with exactly those packages, and compares each file's SHA-256 with the released one. When they match:
Reproduced: 2 files of 2 are the same
and when one doesn't, plinto keeps the folder so you can look:
Not reproduced: 1 files of 2 came out otherwise; the workspace is in <dir>
-p <dir> builds in a folder you choose, and keeps it. Files built for another platform than yours are left out of the check and counted apart.
A build, on your machine
A build that failed in plinto can be made again where you can look inside. Give plinto reproduce the build's number, or its page's link:
$ plinto reproduce https://builds.plinto.build/acme/builds/81
It does what you would do by hand, in build-81/ (or the folder -p names):
plinto workspace create, with the build's version group at the revision it was planned from;plinto workspace addof each package the build built, at the commit it built it from;plinto release -aof the whole workspace, with the build's versions and options.
The workspace stays, and ./reproduce.sh in it builds it again as the build did. A merge plans a group no revision is: the workspace keeps that one in version-group.json, so plinto build, plinto run and your IDE use it too.
Build 81 of acme, main (release), planned from revision 70
ran on the workers (linux-x64), engine 3078db5a406566f9
this plinto the same engine, on mac-aarch64
A build that ran on plinto's workers ran with umask 0077, and reproduce.sh sets it too. Your machine is still not the worker: its platform and tools may differ, and plinto says when its engine does.
Why it comes out the same
- Every tool is a pinned package, never the machine's own.
- Jars get fixed dates and sorted entries, and archives zeroed dates and owners.
- Go builds with
-trimpath, and Cargo without your paths or environment.