Closed lorisleiva closed 1 month ago
Latest commit: c30ef4e865744f545ef178c04976d3f063032cc1
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This PR adds the CLI versions of Solana and (optionally) Anchor to the workspace
Cargo.toml
to provide a single place that dictates which CLI versions should be used for the project, whether we are in CI or in a local environment. For instance:Since we know have a single point to access these versions, CI has been updated to use this information as well.
Additionally, two new scripts have been added to ensure the correct Solana version is used for the project:
pnpm solana:check
will check the installed Solana version and the one expected by the project. If they are different, the script will log a warning to let the user know. This check has been added before any existing script that uses the Solana CLI so the user can be aware that their local Solana version does not match the project requirements.pnpm solana:link
will also check the install Solana version against the expected one but in a more useful way. If they don't match, it'll check to see if the required version exists. If it does, it'll update the active release to point to that one. Otherwise, it will offer to download this version for you.