When building an onchain program with cargo build-sbf
using solana-program
v1.18, I get the following error:
error: package solana-program v1.18.0 cannot be built because it requires rustc 1.72.0 or newer, while the currently active rustc version is 1.68.0-dev
I'm using v1.17.17 of the CLI:
$ cargo build-sbf -V
solana-cargo-build-sbf 1.17.17
platform-tools v1.37
rustc 1.68.0
$ solana -V
solana-cli 1.17.17 (src:27a43800; feat:1337574167, client:SolanaLabs)
How can I resolve this?
(inspired by https://github.com/solana-labs/solana/issues/34987)