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

Upgrade Solana to 1.18.0 #2795

Closed

Conversation

acheroncrypto
Copy link
Collaborator

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.

Copy link

vercel bot commented Jan 28, 2024

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

A member of the Team first needs to authorize it.

@acheroncrypto
Copy link
Collaborator Author

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 solana-labs/solana#31960 (comment) 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
Copy link
Collaborator Author

Superseded by #2867.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked ci dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant