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

[SOL] Improve error message for MSRV #4

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/cargo/ops/cargo_compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,10 @@ pub fn create_bcx<'a, 'cfg>(

anyhow::bail!(
"package `{}` cannot be built because it requires rustc {} or newer, \
while the currently active rustc version is {}\n{}",
while the currently active rustc version is {}\n\
Note that this is the rustc version that ships with Solana tools and \
not your system's rustc version. Use `solana-install update` or head \
over to https://docs.solanalabs.com/cli/install to install a newer version.\n{}",
unit.pkg,
version,
current_version,
Expand Down