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

anchor-spl Upgrade to solana-program v2.0.0 Causes Compilation Errors (Anchor v0.30.1, Solana v1.18.17) #3047

Closed
lingcoder opened this issue Jun 24, 2024 · 1 comment
Labels
compile error Issues related to compile errors duplicate This issue or pull request already exists

Comments

@lingcoder
Copy link

Problem

The anchor-spl package automatically upgraded the solana-program version to 2.0.0. This upgrade has led to a series of compilation errors in my current project.

My project is still dependent on Solana version 1.18.17 and I am using Anchor version 0.30.1.

Steps to Reproduce

  1. Have a project dependent on solana 1.18.17.
  2. Use anchor-spl package with Anchor version 0.30.1.
  3. Notice that anchor-spl automatically upgrades solana-program to 2.0.0.
  4. Experience compilation errors.

Proposed Solution

  1. Investigate whether the anchor-spl package can maintain compatibility with solana 1.18.17.
  2. Provide clear documentation or an approach to handle scenarios where such automatic upgrades lead to compatibility issues.
  3. Possibly consider pinning or offering a version of anchor-spl that is compatible with older versions of Solana.
@acheroncrypto acheroncrypto added duplicate This issue or pull request already exists compile error Issues related to compile errors labels Jun 24, 2024
@acheroncrypto
Copy link
Collaborator

Thanks for creating the issue, but this is a duplicate of #3044, and the problem is not anchor-spl specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile error Issues related to compile errors duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants