I'm trying to run anchor build
on a workspace and receiving errors about a supposedly unmatchable version requirement for the crate "time", even though matching versions exist locally:
As far as I understand semantic versioning rules, all the candidate versions listed should actually meet the requirement. Am I wrong here or is something else going on?
Here's the Cargo.toml:
Building with cargo build
works fine somehow.
- OS: Ubuntu v20.04 on WSL
- Anchor (avm): v0.25.0
- Anchor CLI: v0.24.2
- Solana CLI: v1.10.40
Steps I already tried to fix this include:
- Deleting the cargo cache
- Deleting the entire cargo registry
- Updating my solana and anchor distributions to the newest version