solana-program / create-solana-program

pnpm create solana-program
Apache License 2.0
70 stars 9 forks source link

Add CLI versions to workspace Cargo.toml and Solana check scripts #75

Closed lorisleiva closed 1 month ago

lorisleiva commented 1 month ago

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:

[workspace.metadata.cli]
anchor = "0.30.0"
solana = "1.18.18"

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:

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: c30ef4e865744f545ef178c04976d3f063032cc1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------------- | ----- | | create-solana-program | Patch |

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