Contracts that reference older versions of the Rust framework require - at build time, when the meta crate is invoked - some dependencies which were not strictly referenced by the meta crate itself (back then). Newer versions of these dependencies have been released in the meantime. And these newer dependencies - which (unfortunately) satisfy the (loose) versioning constraints of the (old) meta crate are not compatible with the Rust versions that were hard-coded in the Docker images of v4.1.*. Thus, trying to reproduce such builds lead to errors such as:
error: package `clap_derive v4.4.7` cannot be built because it requires rustc 1.70.0 or newer, while the currently active rustc version is 1.66.0-nightly
Either upgrade to rustc 1.70.0 or newer, or use
cargo update -p clap_derive@4.4.7 --precise ver
where `ver` is the latest version of `clap_derive` supporting rustc 1.66.0-nightly
Contracts that reference older versions of the Rust framework require - at build time, when the meta crate is invoked - some dependencies which were not strictly referenced by the meta crate itself (back then). Newer versions of these dependencies have been released in the meantime. And these newer dependencies - which (unfortunately) satisfy the (loose) versioning constraints of the (old) meta crate are not compatible with the Rust versions that were hard-coded in the Docker images of v4.1.*. Thus, trying to reproduce such builds lead to errors such as: