Reproducible builds bug reported to Rust compiler as https://github.com/rust-lang/rust/issues/97955

David A. Wheeler dwheeler at dwheeler.com
Sat Jun 11 19:02:27 UTC 2022


All:

FYI, there are ongoing efforts to make Rust outputs reproducible
by default (at least from the compiler POV). See:
https://github.com/rust-lang/rfcs/pull/3127

Just to clarify, I did say "aren't (easily) reproducible", not that it was
*impossible* to create reproducible builds. Clearly people are already
managing to do that. The issue is that, as much as practical, we should
try to enable reproducible builds by default.  When things are *normally*
reproducible it's easier to fix the few remaining cases.

It was nalso oted in the discussion of
<https://github.com/rust-lang/rust/issues/97955> (now closed)
that --remap-path-prefix can be used to solve the problem today, and
is a trick Bazel & Nix use. That said, I agree that the better long-term
solution is to make the *default* reproducible.

Thanks.

--- David A. Wheeler



More information about the rb-general mailing list