-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
anchor build --idl fails with Solana 1.17 and Anchor 0.30 #2984
Comments
Solana CLI version is irrelevant to the IDL build process. What is your Rust version? |
|
Do you still have the error if you update Rust with |
Solana and combined with tkaitchuck/aHash#200, the crates don't get built with the I've created an issue in the Agave repo anza-xyz/agave#1572 describing the problem, and included a fix in anza-xyz/agave#1573. |
is there any work around this to build the idl ? |
cargo update --package ahash did it for me. |
@nabeel99 You can use |
I was integrating the mpl-core crate which use 1.17, as you pointed out ahash js pinned in 1.17. |
Looks like there isn't going to be another v1.17 release (anza-xyz/agave#1573 (comment)). You can, however, apply this patch to your root
If you have an existing lock file, you might also need to run:
|
Hi there,
Anchor 0.30.0 doesn't seem to be compatible with Solana 1.17 anymore.
Steps to reproduce
1.17.34
. (sh -c "$(curl -sSfL https://release.solana.com/v1.17.34/install)"
).0.30.0
. (avm install latest
).anchor init my-project
andcd
into it.solana-program = "=1.17.34"
to your program dependencies.anchor build
. The first build works but the second (for the IDL) fails with the following error:Potential reason
Having seen this PR (#2893), my guess is that, unpinning the nightly version made it work for 1.18 but broke it for 1.17.
The text was updated successfully, but these errors were encountered: