sometimes when i build against the release profile it works perfectly and builds just fine, other times not so much but can usually be fixed by restarting the build. perhaps caused by the optimisations?
Our Personal Data Server from scratch!
tranquil.farm
oauth
atproto
pds
rust
postgresql
objectstorage
fun
release profile is not reproducible #25
open
opened by
isabelroses.com
isabelroses.com
(author)
edited
you can in test with just what we currently have in the repo using a command like nix build -L --rebuild which will compare if the last two builds are identical. but for me 2/3 of the builds were failing.
oh thats ... not great. would optimisations do that? urgh its been a while since i dealt with reproducibility of rust builds. definitely wanna fix that tho
mostly confused cause afaik cargo is basically always deterministic, then nix provides the specified environment and dependencies and thus should make it reproducible urgh
isabelroses.com
(author)
i mostly assumed it was optimisations since i know that is a common cause for none reproducible builds, fat lto was also what made me think it. but it might certainly not be that.
I did indeed put all the optimization settings for release build quite up there, hmm. this will probably be easier to investigate when the nix module is merged into main, right? :p