While trying to build a project initialized with anchor I get the following error. I was trying to search and deduce solution, I was not successful.
When I run cargo build from project root, I am getting error written below.
I am not sure what kind of additional information I should provide, give me instructions if necessary and I'll provide the additional info.
P.S. I am posting this here, since output suggested so.
Error Output
error: failed to download solana-program v1.9.6
Caused by:
unable to get packages from source
Caused by:
failed to find solana-program v1.9.6 in path source
note: this is an unexpected cargo internal error
note: we would appreciate a bug report: https://github.com/rust-lang/cargo/issues/
note: cargo 1.58.0 (f01b232bc 2022-01-19)
I'm guessing the registry cache has gotten corrupted somehow. I might suggest just deleting it. It is located at $CARGO_HOME/registry where $CARGO_HOME is usually $HOME/.cargo.
Problem
While trying to build a project initialized with anchor I get the following error. I was trying to search and deduce solution, I was not successful. When I run cargo build from project root, I am getting error written below. I am not sure what kind of additional information I should provide, give me instructions if necessary and I'll provide the additional info.
P.S. I am posting this here, since output suggested so.
Error Output
error: failed to download
solana-program v1.9.6
Caused by: unable to get packages from sourceCaused by: failed to find solana-program v1.9.6 in path source note: this is an unexpected cargo internal error note: we would appreciate a bug report: https://github.com/rust-lang/cargo/issues/ note: cargo 1.58.0 (f01b232bc 2022-01-19)
Steps
Possible Solution(s)
No response
Notes
No response
Version