-
Notifications
You must be signed in to change notification settings - Fork 301
cap solana-program under 2 and fix warning #2063
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@madninja is attempting to deploy a commit to the Pyth Network Team on Vercel. A member of the Team first needs to authorize it. |
I do agree capping Solana, but not with the other two changes:
|
Really? It's an unused variable.. is there another way to clean that up rather than living with warnings?
We tried this helium helium-wallet-rs/helium-lib and that is not the case. Capping the solana version and leaving anchor the way it is picks anchor 0.30.1 which breaks the build in this crate. Are you suggesting capping anchor <= 0.30.0 ?
|
I've bumped the cap for anchor lang to include 0.30.0 since that does appear to build correctly. Thanks for the sharp eyes! |
Can you make a reproducible example where it doesn't work with 0.30.1? It works on my side |
Are you sure you did a cargo update after uncapping it to >= 0.28 again? As an example I removed the anchor-lang change in this PR, and am using it here Resulting error: https://github.com/helium/helium-wallet-rs/actions/runs/11523949934/job/32083062729?pr=414#step:7:21 |
Hey, I got around your issue by running I'm going to merge most of your changes from #2066, except capping anchor since we want to support recent versions of anchor. Feel free to reopen if you have more issues. |
Gotcha.. that's unforunate since 1. that means that every downstream user of the helium-lib crate needs to re-pin anchor to 0.29.0. and 2. anyone not using 0.30.1 will have this issue using the pyth receiver sdk afaict |
The receiver SDK (or rather the generated anchor client) does not work with solana-program 2.0. Cargo does not know this though and ends up picking solana-program 2.0 which then blows up the downstream build.
This PR caps the solana-program dependency to < 2 and fixes a build warning