anchor icon indicating copy to clipboard operation
anchor copied to clipboard

anchor-spl 0.25.0 breaks when combined with solana-program-test 1.10.38

Open peterschwarzdev opened this issue 3 years ago • 1 comments
trafficstars

The following anchor configuration (Cargo.toml) breaks when running anchor build:

[dependencies]
anchor-lang = "0.25.0"
anchor-spl = "0.25.0"

[dev-dependencies]
solana-program-test = "=1.10.38"

Throwing:

error: failed to select a version for `spl-associated-token-account`.
    ... required by package `anchor-spl v0.25.0`
    ... which satisfies dependency `anchor-spl = "^0.25.0"` of package `cubist_games v0.1.0 (/Users/anderustarroz/Sites/work/rust/cubist_games/programs/sol_games)`
versions that meet the requirements `~1.0.3` are: 1.0.5, 1.0.3

all possible versions conflict with previously selected packages.

  previously selected package `spl-associated-token-account v1.1.1`
    ... which satisfies dependency `spl-associated-token-account = "=1.1.1"` of package `solana-transaction-status v1.10.38`
    ... which satisfies dependency `solana-transaction-status = "=1.10.38"` of package `solana-client v1.10.38`
    ... which satisfies dependency `solana-client = "=1.10.38"` of package `solana-banks-server v1.10.38`
    ... which satisfies dependency `solana-banks-server = "=1.10.38"` of package `solana-program-test v1.10.38`
    ... which satisfies dependency `solana-program-test = "=1.10.38"` of package `cubist_games v0.1.0 (/Users/anderustarroz/Sites/work/rust/cubist_games/programs/sol_games)`

failed to select a version for `spl-associated-token-account` which could resolve this conflict

peterschwarzdev avatar Sep 20 '22 02:09 peterschwarzdev

@armaniferrante are you ooposed to a nightly build with latests solana ?

austbot avatar Sep 20 '22 15:09 austbot

This was likely fixed with the version updates we added.

Henry-E avatar Dec 07 '22 18:12 Henry-E