coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.36k stars 1.25k forks source link

'avm use' doesn't change the AVM version #2952

Closed ilyukou closed 1 month ago

ilyukou commented 1 month ago

I'm facing the problem when avm use doesn't change avm version. Here is the logs from the terminal:

ilyailyukou@Ilyas-MacBook-Pro ~ % avm list             
0.11.0
0.11.1
0.12.0
0.13.0
0.13.1
0.13.2
0.14.0
0.15.0
0.16.0
0.16.1
0.16.2
0.17.0
0.18.0
0.18.2
0.19.0
0.20.0
0.20.1
0.21.0
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.26.0
0.27.0
0.28.0  (installed, current)
0.29.0  (installed)
0.30.0  (latest)
ilyailyukou@Ilyas-MacBook-Pro ~ % avm --version
avm 0.30.0
ilyailyukou@Ilyas-MacBook-Pro ~ % anchor --version
anchor-cli 0.28.0
ilyailyukou@Ilyas-MacBook-Pro ~ % avm use 0.29.0
Now using anchor version 0.29.0.
ilyailyukou@Ilyas-MacBook-Pro ~ % anchor --version
anchor-cli 0.29.0
ilyailyukou@Ilyas-MacBook-Pro ~ % avm --version   
avm 0.30.0
ilyailyukou@Ilyas-MacBook-Pro ~ % 
acheroncrypto commented 1 month ago

This is the intended behavior. Why do you need to change avm version? The latest should generally work the best.

hammad-ali18 commented 1 month ago

Open termial install anchor using avm

cargo install --git https://github.com/coral-xyz/anchor avm --locked --force

avm install {version} avm use {version}

hint: use version 0.29.0