Skip to content
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

cli: Check anchor-lang and CLI version compatibility #2753

Conversation

acheroncrypto
Copy link
Collaborator

Problem

Using different version of program crate and the CLI can lead to unwanted behavior.

Summary of changes

Print a warning when there is a mismatch between the versions. For example:

WARNING: `anchor-lang` version(0.28.0) and the current CLI version(0.29.0) don't match.

        This can lead to unwanted behavior. To use the same CLI version, add:

        [toolchain]
        anchor_version = "0.28.0"

        to Anchor.toml

Copy link

vercel bot commented Dec 31, 2023

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added enhancement New feature or request cli labels Dec 31, 2023
@acheroncrypto acheroncrypto merged commit 47ff77f into coral-xyz:master Jan 2, 2024
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant