You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At least locally, if I do not use the Cargo.lock that is specified in the repository when compiling, it fails to compile. I.e, it cannot build the Cargo.lock from the Cargo.toml.
This is likely due to a mistake done on my behalf, but it would be useful to update the README.md in order to properly explain the required steps needed in order to compile this project from scratch.
Steps to reproduce
In order to produce this error I did the following:
Ensured the rustc version and cargo version were specified as in the README.md (using architecture x86_64 and version 1.75.0 as specified in the rust-toolchain.toml)
Ran cargo build --target x86_64-apple-darwin (the same issue arises with cargo build)
Resulting in:
error: failed to select a version for the requirement `solana_rbpf = "=0.8.0"`
candidate versions found which didn't match: 0.8.5, 0.8.4, 0.8.3, ...
location searched: crates.io index
required by package `solana-program-test v1.18.17`
... which satisfies dependency `solana-program-test = "=1.18.17"` of package `liquidity-incentive-program v0.1.0
Further debugging
Because 0.8.0 is yanked on crates.io, I added the following patch to the Cargo.toml:
error: package `fixed v1.28.0` cannot be built because it requires rustc 1.79 or newer, while the currently active rustc version is 1.75.0
Either upgrade to rustc 1.79 or newer, or use
cargo update [email protected] --precise ver
where `ver` is the latest version of `fixed` supporting rustc 1.75.0
It is possible to run cargo update [email protected] --precise 1.27.0 (since 1.27.0 is the version in the Cargo.lock), but the issues persist with similar errors:
error: package `solana-program v2.1.5` cannot be built because it requires rustc 1.79.0 or newer, while the currently active rustc version is 1.75.0
Either upgrade to rustc 1.79.0 or newer, or use
cargo update [email protected] --precise ver
where `ver` is the latest version of `solana-program` supporting rustc 1.75.0
Summary
It would be ideal if this could be resolved such that the project compiles without the Cargo.lock present, allowing developers to use crates from this repository as dependencies, without having to copy over the Cargo.lock file.
The text was updated successfully, but these errors were encountered:
Compiling issues without
Cargo.lock
presentAt least locally, if I do not use the
Cargo.lock
that is specified in the repository when compiling, it fails to compile. I.e, it cannot build the Cargo.lock from the Cargo.toml.This is likely due to a mistake done on my behalf, but it would be useful to update the
README.md
in order to properly explain the required steps needed in order to compile this project from scratch.Steps to reproduce
In order to produce this error I did the following:
rustc
version andcargo
version were specified as in theREADME.md
(using architecturex86_64
and version 1.75.0 as specified in therust-toolchain.toml
)rustc --version
And
cargo --version
Removed the
Cargo.lock
usingrm Cargo.lock
.Ran
cargo build --target x86_64-apple-darwin
(the same issue arises withcargo build
)Resulting in:
Further debugging
Cargo.toml
:But then run into issues:
It is possible to run
cargo update [email protected] --precise 1.27.0
(since 1.27.0 is the version in theCargo.lock
), but the issues persist with similar errors:Summary
It would be ideal if this could be resolved such that the project compiles without the
Cargo.lock
present, allowing developers to use crates from this repository as dependencies, without having to copy over theCargo.lock
file.The text was updated successfully, but these errors were encountered: