Closed
Description
Issue
Running anchor build
or anchor test
in a fresh project initialized with anchor-cli fails with the following:
error: failed to parse lock file at: /Users/{user}/{project_dir}/anchor/Cargo.lock
Caused by:
lock file version 4 requires `-Znext-lockfile-bump
Environment Details
Apple silicon (m1)
anchor --version
anchor-cli 0.30.1
cargo --version
cargo 1.85.0-nightly (4c39aaff6 2024-11-25)
solana --version
solana-cli 2.0.17 (src:7104d713; feat:607245837, client:Agave)
I ended up in this state after running cargo build-sbf --force-tools-install
to resolve the error: not a directory: '.../solana-release/bin/sdk/sbf/dependencies/platform-tools/rust/lib'
error as recommended here