.\" Generated by scdoc 1.11.2 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "REPRO-ENV" "1" "2024-02-29" .P .SH NAME .P repro-env - Dependency lockfiles for reproducible build environments .P .SH SYNOPSIS .P \fBrepro-env\fR update .P \fBrepro-env\fR build -- [\fICOMMAND\fR] .P .SH DESCRIPTION .P Tracks a description of a desired state in \fBrepro-env.\&toml\fR, for example, the latest version of some official container image, with the latest patch level and the latest version of some additional packages.\& It also tracks a resolved variant in \fBrepro-env.\&lock\fR that tracks the specific versions and checksums of the packages needed to set up the described environment (at the patch-level available at the time of writing).\& .P The purpose of \fBrepro-env.\&toml\fR is to make it trivial to re-resolve the specification if new patches become available.\& This file is read by \fBrepro-env update\fR.\& .P The purpose of \fBrepro-env.\&lock\fR is to document which compiler versions have been used for the release binary associated with a given release.\& Recording this information is essential for reproducible builds and allows future forensic investigation of the build environment.\& It can be either committed into the source-code repository or attached to a release as an artifact, along with the compiled binary.\& This file is read by \fBrepro-env build\fR.\& .P .SH GLOBAL OPTIONS .P \fB-v\fR, \fB--verbose\fR .RS 4 Increase logging output (can be used multiple times) .P .RE \fB-C\fR \fIpath\fR, \fB--context\fR \fIpath\fR .RS 4 Change the current directory to this path before executing the subcommand .P .RE .SH UPDATE .P This command resolves the environment described in \fBrepro-env.\&toml\fR with the latest available updates and writes a \fBrepro-env.\&lock\fR.\& You would use this command similar to how you would use \fBcargo update\fR.\& .P \fB--no-pull\fR .RS 4 Do not attempt to pull the container tag from registry before resolving it .P .RE \fB-k\fR, \fB--keep\fR .RS 4 Do not delete the build container, wait for ctrl-c .P .RE .SH BUILD .P This command loads a \fBrepro-env.\&lock\fR, sets up the environment it describes in a container and mounts the current directory to \fB/build\fR inside of the container.\& It then runs the given \fICOMMAND\fR inside of this container.\& .P \fB-f\fR \fIpath\fR, --file \fIpath\fR .RS 4 The dependency lockfile to use .P .RE \fB-k\fR, \fB--keep\fR .RS 4 Do not delete the build container, wait for ctrl-c .P .RE \fB-e\fR \fIenv\fR, \fB\fR--env\fB\fR \fIenv\fR .RS 4 Pass environment variables into the build container (FOO=bar or just FOO to lookup the value) .P .RE .SH PACKAGES: ARCH LINUX .P Arch Linux hosts a comprehensive collection of recent compilers at https://archive.\&archlinux.\&org.\& You can create a \fB[packages]\fR section in your \fBrepro-env.\&toml\fR with \fBsystem = "archlinux"\fR to install additional packages with pacman.\& .P .nf .RS 4 # repro-env\&.toml [container] image = "docker\&.io/library/archlinux" [packages] system = "archlinux" dependencies = ["rust-musl", "lua"] .fi .RE .P .SH PACKAGES: DEBIAN .P Debian is a widely accepted choice and hosts an archive of all their packages at https://snapshot.\&debian.\&org/.\& You can create a \fB[packages]\fR section in your \fBrepro-env.\&toml\fR with \fBsystem = "debian"\fR to install additional packages with apt-get.\& .P .nf .RS 4 # repro-env\&.toml [container] image = "debian:bookworm" [packages] system = "debian" dependencies = ["gcc", "libc6-dev"] .fi .RE .P .SH AUTHORS .P repro-env is developed on github at https://github.\&com/kpcyrd/repro-env