# plinto reproduce

> Make a build's workspace here and build it as it did; or build a release again from its commit and compare its files.

```text
plinto reproduce <build> | <package> <version> [options]
```

Given a build, its number (81) or its page's link, makes the workspace it built in, in build-<number>/ or the
folder -p names, as plinto workspace create would (its version group at the revision it was planned from) and
plinto workspace add (each package it built, from the source and commit it built it from), then builds the whole
workspace as plinto release -a, with the build's versions and options, and the workers' umask when it ran on
them. reproduce.sh keeps that command, to build again. A group no revision is, as a merge planned, is
version-group.json, which the workspace names. It says where the build ran and with which engine, and exits as
its build does. The build is the link's organization's, or -o's, else that of the workspace you are in, else
yours when you are in one.

Given a release, builds <package> <version> again: clones the source it was released from at its commit, builds it as a
release with exactly the versions it was built with (its builtWith), whatever its version group holds
now, and compares every file with the SHA-256 the repository recorded. It prints what went into the
release: its source, the plinto engine that built it and every package. A file for another platform
(linux-x64 on a Mac) can't be checked here. A commit from before builds took only packages builds with
its Maven-, Go- and Rust- entries resolved as they were then.

It exits with 0 when every file it can check is the same, and 1 when one isn't. It builds in a
temporary folder, deleted when everything is the same, or in the folder -p names, which it keeps.

## Options

- `-p, --dir <dir>`: the folder, new or empty: a build's workspace (default: build-<number>), or where a release builds, kept (default: a temporary one, deleted when every file is the same)
- `-o, --organization <name>`: the organization whose version group and packages these are (default: yours, when you are in one)
- `-h, --help`: show this help
