Closed gxxcastillo closed 3 months ago
It looks like your local cache somehow got corrupted because we wouldn't be able to release the anchor-spl
crate if we used something like
use anchor_lang::solana_program::account_info::AccountInfo:mint_to;
You can see the published source that's tagged on GitHub here:
I'd recommend removing the anchor-spl
from your cargo
cache located in ~/.cargo/registry
.
I'm still seeing the same errors after deleting all of ~/.cargo/registry
I haven't made any changes to my rust setup since last week and I've been running builds just fine up until last night.
➜ rustc --version
rustc 1.79.0 (129f3b996 2024-06-10)
➜ cargo --version
cargo 1.79.0 (ffa9cf99a 2024-06-03)
➜ anchor --version
anchor-cli 0.30.1
NM, fixed. Not sure what happened but I was able to resolve the issue with:
> cargo update
> anchor clean
> anchor build
apologies for the trouble!
Summary
As of last night,
anchor build
breaks with anchor-spl v0.30.1.Also, noob question: It says I'm using the nightly build, how do I use the previous build?
Details
As of last night I've tried building a few different projects that were previously building and I'm getting this error. The printout is pretty long so I've truncated it...
Note, I had to delete my existing
/target
folder in order to reproduce.