8000 Fresh project `anchor build` fails with "lock file version 4 requires `-Znext-lockfile-bump`" · Issue #3392 · solana-foundation/anchor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Fresh project anchor build fails with "lock file version 4 requires -Znext-lockfile-bump" #3392
Closed
@code-cream

Description

@code-cream

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0