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 #14655

Open
Kelvin-1013 opened this issue Oct 8, 2024 · 4 comments
Open

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

Kelvin-1013 opened this issue Oct 8, 2024 · 4 comments
Labels
C-bug Category: bug S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request.

Comments

@Kelvin-1013
Copy link

Problem

Image
I have tried so many time but always fail.
Cargo build act, but anchor build not act
help me seniors

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

No response

@Kelvin-1013 Kelvin-1013 added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Oct 8, 2024
@epage
Copy link
Contributor

epage commented Oct 8, 2024

Lockfile v4 has been stable since Rust 1.78. We are making it the default version as of 1.83 nighties unless your MSRV is below 1.78.

I would look into

  • If you can bump your Rust version
  • Enforce a lower Rust version is used for anyone who generates the lockfile
  • Set package.rust-version, if applicable

@weihanglo
Copy link
Member

It would also help if the version info of the Rust toolchain is provided. The output of cargo -vV should be sufficient.

@Kelvin-1013
Copy link
Author

Thank you for your response.
Image

Image

`[workspace]
members = [
"programs/*"
]
resolver = "2"

[profile.release]
overflow-checks = true
lto = "fat"
codegen-units = 1
[profile.release.build-override]
opt-level = 3
incremental = false
codegen-units = 1
`

Image

I provide this info, give me advice, seniors

@epage
Copy link
Contributor

epage commented Oct 10, 2024

Can you provide full reproduction steps with only cargo?

@weihanglo weihanglo added S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request. and removed S-triage Status: This issue is waiting on initial triage. labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request.
Projects
None yet
Development

No branches or pull requests

3 participants