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
Have a project dependent on solana 1.18.17.
Use anchor-spl package with Anchor version 0.30.1.
Notice that anchor-spl automatically upgrades solana-program to 2.0.0.
Experience compilation errors.
Proposed Solution
Investigate whether the anchor-spl package can maintain compatibility with solana 1.18.17.
Provide clear documentation or an approach to handle scenarios where such automatic upgrades lead to compatibility issues.
Possibly consider pinning or offering a version of anchor-spl that is compatible with older versions of Solana.
Problem
The
anchor-spl
package automatically upgraded thesolana-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
solana 1.18.17
.anchor-spl
package with Anchor version 0.30.1.anchor-spl
automatically upgradessolana-program
to 2.0.0.Proposed Solution
anchor-spl
package can maintain compatibility withsolana 1.18.17
.anchor-spl
that is compatible with older versions of Solana.