Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reproduce previous build] v1.10.4-backwards-comp-proxy-dex #797

Draft
wants to merge 4 commits into
base: release/v1.10.4-backwards-comp-proxy-dex
Choose a base branch
from

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Dec 28, 2023

⚠️ For reproducible builds to work, ALL Cargo.lock files must be committed (not ignored). ⚠️

For farm_with_lock, the Cargo.lock file was previously missing, thus it had to be reconstructed from scratch - as it was at the time of the build, ~14th of December 2022.

The process of re-creating a missing Cargo.lock (as it was at a certain point in the past) is quite complex.

Steps involved:

cargo update -p once_cell --precise 1.16.0
cargo update -p proc-macro2 --precise 1.0.47
cargo update -p unicode-ident --precise 1.0.5
cargo update -p syn --precise 1.0.105
cargo update -p arrayvec --precise 0.7.2
cargo update -p quote --precise 1.0.21

cargo update -p serde_derive --precise 1.0.150
cargo update -p serde_json --precise 1.0.89
cargo update -p serde --precise 1.0.150
cargo update -p git-version --precise 0.3.5
cargo update -p git-version-macro --precise 0.3.5
cargo update -p proc-macro-hack --precise 0.5.19
cargo update -p zeroize_derive --precise 1.3.3

cargo update -p cpufeatures --precise 0.2.5
cargo update -p [email protected] --precise 0.2.8
cargo update -p libc --precise 0.2.138

Additionally, reference of ahash had to be manually overridden in Cargo.lock files, since the version at that time, v0.7.6, has been yanked (deprecated) in the meantime:

[[package]]
name = "ahash"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"
dependencies = [
 "getrandom 0.2.8",
 "once_cell",
 "version_check",
]

In order to reproduce this build, some fixes were required on top of mx-sdk-rs (older versions), as well:

@andreibancioiu andreibancioiu added the reproduced-build Reproduced a previous build. label Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reproduced-build Reproduced a previous build.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant