Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lock file version 4 requires -Znext-lockfile-bump #3393

Closed
619 opened this issue Nov 28, 2024 · 4 comments
Closed

lock file version 4 requires -Znext-lockfile-bump #3393

619 opened this issue Nov 28, 2024 · 4 comments
Labels
cli duplicate This issue or pull request already exists

Comments

@619
Copy link

619 commented Nov 28, 2024

I get lock file version 4 requires -Znext-lockfile-bump when I try to run anchor build. I've tried everything chatGPT has suggested and it's still there.

@dhl
Copy link

dhl commented Nov 29, 2024

It seems like the newer Rust nightlies have bumped Cargo lock file to version 4.

You can workaround this problem by downgrading the changing the lock file version from 4 to 3.

@code-cream
Copy link

It seems like the newer Rust nightlies have bumped Cargo lock file to version 4.

You can workaround this problem by downgrading the changing the lock file version from 4 to 3.

this worked for me 👍

@acheroncrypto
Copy link
Collaborator

Thanks for creating the issue. Please see the answer in #3392 (comment).

@nicthatcher
Copy link

It seems like the newer Rust nightlies have bumped Cargo lock file to version 4.

You can workaround this problem by downgrading the changing the lock file version from 4 to 3.

How do you change the lock file version on the command line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants