# Check a release

> Build a release again from its commit and compare every file, or make a build's workspace on your machine.

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.

```sh
$ 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:

```text
Reproduced: 2 files of 2 are the same
```

and when one doesn't, plinto keeps the folder so you can look:

```text
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 {#build}

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:

```sh
$ 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):

1. `plinto workspace create`, with the build's version group at the revision it was planned from;
2. `plinto workspace add` of each package the build built, at the commit it built it from;
3. `plinto release -a` of 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.

```text
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 {#why}

- 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.

- [Packages](../concepts/packages.md): what a release was built with
- [Versions and releases](../concepts/versions.md): how a release is numbered
- [Rust](../languages/rust.md): the pinned C toolchain
