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: Warn if a manifest has solana-program dependency #3250

Conversation

acheroncrypto
Copy link
Collaborator

Problem

Adding solana-program to the dependencies list in Cargo.toml should be avoided, as it's likely to increase the possibility of version conflicts between v1 and v2 (#3219). Users should instead use the exported anchor_lang::solana_program.

Summary of changes

Warn if a user's manifest has solana-program dependency:

WARNING: Adding `solana-program` as a separate dependency might cause conflicts.
To solve, remove the `solana-program` dependency and use the exported crate from `anchor-lang`.
`use solana_program` becomes `use anchor_lang::solana_program`.
Program name: `my-program`

Copy link

vercel bot commented Sep 14, 2024

@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 merged commit e6a7d69 into coral-xyz:master Sep 14, 2024
0 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant