-
Notifications
You must be signed in to change notification settings - Fork 34
Reproducible Build
Yin Guanhao edited this page Jun 14, 2023
·
3 revisions
With the same rust version and docker image, capsule build is mostly reproducible, with the following caveats:
- The absolute path of
$CARGO_HOME
/$PWD
or some other directories may end up in the binary in e.g. panic messages. Usestrings
to check for file paths in the binary. Use--remap-path-prefix
to replace these paths, e.g.:
$ RUSTFLAGS="--remap-path-prefix=$HOME=~ --remap-path-prefix=$PWD=" capsule build --release