-
Notifications
You must be signed in to change notification settings - Fork 4.5k
sdk/sbf/scripts/install points to sbf-tools that have a too old cargo #31337
Comments
More recent versions of
If cargo-build-sbf shipped with solana v1.15.2 supports this option, you could use it to install platform-tools v1.35. |
Thanks for the information. Very helpful.
I actually tried out this manual method but every time I run Even I created a symbolic link by replacing the old one under Anyway thank you for your help. Feel free to close the issue. |
you could trick cargo-build-sbf into believing you have the version of platform tools it expects untaring the platform-tools tarball in the path that cargo-build-sbf (solana v1.15.2) expects. Suppose you download platform-tools v1.35, then untar it in ~/.cache/solana/v1.32/sbf-tools/ You would have to remove the existing v1.32 files first, of course. |
Haha, that's the trick. Got it. Thank you : ) |
Problem
I'm working on a project where "workspace inheritance" feature of Cargo is needed/desired.
The feature has been stabilized since Rust 1.64. See this comment: dependabot/dependabot-core#5315 (comment)
However, the latest solana release (v1.15.2 on Linux) still installs sbf-tools of version v1.32:
solana/sdk/sbf/scripts/install.sh
Line 105 in dea65f4
If I didn't make it wrong, this indeed downloads and installs sbf-tools of version v1.30, because:
https://github.com/solana-labs/platform-tools/blob/d848ae4eb747b105e1380749e6a2414bc155884d/build.sh#L30
which, in the end, pulls down a Cargo of version 1.62, the one that had not supported workspace inheritance:
https://github.com/solana-labs/cargo/blob/sbf-tools-v1.30/Cargo.toml
Proposed Solution
Make solana stable release (v1.15.2) point to/download a sbf-tools of version above 1.32 that ships a cargo with version 1.64 or higher:
sbf-tools-v1.35 seems stable and fine.
Why don't I try out the
edge
version of solana, you might wonder. Well, I did. Yet all theinvoke
instructions in our programs terminated with an error sayingInvoked an instruction with data that is too large (12884932726 > 10240)
.I believe there is something wrong with the
edge
version, but I have no clue yet. Trying to rolling back to the previous dev environment leads me to the above mentioned issue however.Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: