anchor icon indicating copy to clipboard operation
anchor copied to clipboard

Upgrade Solana to 1.18.0

Open acheroncrypto opened this issue 1 year ago • 2 comments

Problem

Now that solana-program 1.18.0 is out, new projects start with an incompatible version if the user's Solana CLI is <1.18:

$ anchor build
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
Either upgrade to rustc 1.72.0 or newer, or use
cargo update -p [email protected] --precise ver
where `ver` is the latest version of `solana-program` supporting rustc 1.68.0-dev

Summary of changes

Upgrade Solana tools to 1.18.0. Note that solana-program crate minimum version requirement for Anchor crates is still 1.16.

acheroncrypto avatar Jan 28 '24 20:01 acheroncrypto

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jan 28 '24 20:01 vercel[bot]

The failing tests in CI have been working with all prior versions so I think something is off with program memory in 1.18. I'm afraid it could be something like https://github.com/solana-labs/solana/issues/31960#issuecomment-1668682153 again but unfortunately this time it's not fixable by making sure crate and CLI versions are the same.

We could fix these errors and merge this but I think there is a bigger problem here since if our CI have these errors, there is a high probability that many of the production programs will run into this problem too.

For example pyth tests have worked since 2021 without problems but now they result in a runtime error with 1.18 release:

"Program log: panicked at 'from_bytes_mut>SizeMismatch', src/internal.rs:32:3

I might be missing something here but if not, this problem needs to be fixed from upstream.

acheroncrypto avatar Feb 04 '24 09:02 acheroncrypto

Superseded by https://github.com/coral-xyz/anchor/pull/2867.

acheroncrypto avatar Mar 28 '24 16:03 acheroncrypto