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

Use of older toolchain versions is highly problematic if workspace default is set to nightly #1192

Open
vrurg opened this issue Nov 25, 2024 · 0 comments
Assignees

Comments

@vrurg
Copy link

vrurg commented Nov 25, 2024

Describe The Bug

If a workspace is defaults to nightly (rustup override set nightly) then cargo creates v4 Cargo.lock. But when a task has its toolchain set to some older version and it's executing cargo then the following happens:

[cargo-make] INFO - makers 0.37.23
[cargo-make] INFO -
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: bugtest
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Execute Command: "rustup" "run" "1.77" "cargo" "test"
error: failed to parse lock file at: /[...]/Cargo.lock

Caused by:
  lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
Error while executing command, exit code: 101

To Reproduce

[tasks.bugtest]
    args      = ["test"]
    command   = "cargo"
    toolchain = "1.77"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants